Commit ab5fead3 authored by dj3c1t's avatar dj3c1t

commande dj3c1t:app:test

parent 22445108
namespace Dj3c1t\AppBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class TestCommand extends ContainerAwareCommand {
private $container;
protected function configure() {
->setDescription('test un truc')
'Who do you want to greet?'
'If set, the task will yell in uppercase letters'
protected function execute(InputInterface $input, OutputInterface $output) {
$this->container = $this->getApplication()->getKernel()->getContainer();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment