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();
}