Exemple #1
0
 /**
  * Constructor.
  */
 public function __construct(Kernel $kernel)
 {
     $this->kernel = $kernel;
     parent::__construct('Symfony', Kernel::VERSION . ' - ' . $kernel->getName());
     $this->definition->addOption(new InputOption('--shell', '-s', InputOption::PARAMETER_NONE, 'Launch the shell.'));
     $this->kernel->boot();
     $this->registerCommands();
 }