Esempio n. 1
0
 /**
  * Constructor.
  */
 public function __construct(Controller $controller)
 {
     $this->controller = $controller;
     parent::__construct('ContainerKit', \CONTAINERKIT_VERSION);
     $this->definition->addOption(new InputOption('--shell', '-s', InputOption::PARAMETER_NONE, 'Launch the shell.'));
     $this->registerCommands();
 }
Esempio n. 2
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();
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct('Symfony', Kernel::VERSION);
     $this->addCommand(new InitApplicationCommand());
 }