Exemplo n.º 1
0
 /**
  * Creates the container and sets some services which are only synthetic in the container
  *
  * @param  InputInterface   $input
  * @param  OutputInterface  $output
  * @return ContainerBuilder
  */
 protected function createContainer(InputInterface $input, OutputInterface $output)
 {
     $container = DependencyInjection::createContainer();
     $questionHelper = $this->getHelperSet()->get('question');
     $container->set('output_interface', $output);
     $container->set('input_interface', $input);
     $container->set('question_helper', $questionHelper);
     $container->set('helper_set', $this->getHelperSet());
     $container->set('autoloader', $this->loader);
     return $this->container = $container;
 }
Exemplo n.º 2
0
 public function getContainer()
 {
     $di = \ShopwareCli\Application\DependencyInjection::createContainer(__DIR__);
     $di->set('output_interface', new \Symfony\Component\Console\Output\NullOutput());
     return $di;
 }