Commit ab5fead3 authored by dj3c1t's avatar dj3c1t

commande dj3c1t:app:test

parent 22445108
<?php
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() {
$this
->setName('dj3c1t:app:test')
->setDescription('test un truc')
/*
->addArgument(
'name',
InputArgument::OPTIONAL,
'Who do you want to greet?'
)
->addOption(
'yell',
null,
InputOption::VALUE_NONE,
'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