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 RunCommand extends ContainerAwareCommand
{
protected function configure()
$this
->setName('supervisor:run')
->setDescription('run supervisor instance')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
$this->getContainer()->get('ivan1986_supervisor.supervisor_service')->run();