for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ivan1986\SupervisorBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class InitCommand extends ContainerAwareCommand
{
protected function configure()
$this
->setName('supervisor:init')
->setDescription('Create base config files for run local supervisor')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
$conf = $this->getContainer()->get('templating')->render('@Supervisor/supervisord.conf.twig', array(
));
file_put_contents($this->getContainer()->getParameter('kernel.root_dir').'/supervisord.conf', $conf);
mkdir($this->getContainer()->getParameter('kernel.root_dir').'/supervisor');