/** * @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); }
/** * @see Command */ protected function execute(InputInterface $input, OutputInterface $output) { DoctrineCommandHelper::setApplicationConnection($this->getApplication(), $input->getOption('session')); parent::execute($input, $output); }