예제 #1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $documentRoot = $input->getOption('docroot');
     if (null === $documentRoot) {
         $input->setOption('docroot', $this->getContainer()->getParameter('sf.web_root_dir'));
     }
     return parent::execute($input, $output);
 }
예제 #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $context = $this->getContainer()->getParameter('sulu.context');
     $io = new SymfonyStyle($input, $cliOutput = $output);
     if (false === ($router = $this->determineRouterScript($input->getOption('router'), $context, $io))) {
         return 1;
     }
     $port = $this->determinePort($input->getOption('port'), $context);
     $input->setOption('router', $router);
     $input->setOption('port', $port);
     return parent::execute($input, $output);
 }