protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface |
protected function execute(InputInterface $input, OutputInterface $output) { if (class_exists('Doctrine\\ODM\\PHPCR\\Tools\\Console\\Command\\RegisterSystemNodeTypesCommand')) { DoctrineCommandHelper::setApplicationPHPCRSession($this->getApplication(), $input->getOption('session')); $command = new RegisterSystemNodeTypesCommand(); $command->setApplication($this->getApplication()); $command->execute($input, $output); } $initializerManager = $this->getContainer()->get('doctrine_phpcr.initializer_manager'); $initializerManager->setLoggingClosure(function ($message) use($output) { $output->writeln($message); }); $initializerManager->initialize(); }
protected function execute(InputInterface $input, OutputInterface $output) { DoctrineCommandHelper::setApplicationPHPCRSession($this->getApplication(), $input->getOption('session')); return parent::execute($input, $output); }