/**
  * @see Command
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $application = $this->getApplication();
     $sessionName = $input->getOption('session');
     if (empty($sessionName)) {
         $container = $application->getKernel()->getContainer();
         $sessionName = $container->getParameter('doctrine_phpcr.default_session');
     }
     DoctrineCommandHelper::setApplicationConnection($application, $sessionName);
     parent::execute($input, $output);
 }
Ejemplo n.º 2
0
 /**
  * @see Command
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     DoctrineCommandHelper::setApplicationConnection($this->getApplication(), $input->getOption('session'));
     parent::execute($input, $output);
 }