PhpSpec\Console\Application::doRun PHP Method

doRun() public method

public doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer
    public function doRun(InputInterface $input, OutputInterface $output)
    {
        $helperSet = $this->getHelperSet();
        $this->container->set('console.input', $input);
        $this->container->set('console.output', $output);
        $this->container->set('console.helper_set', $helperSet);
        $this->container->define('process.executioncontext', function () {
            return JsonExecutionContext::fromEnv($_SERVER);
        });
        $assembler = new ContainerAssembler();
        $assembler->build($this->container);
        $this->loadConfigurationFile($input, $this->container);
        foreach ($this->container->getByTag('console.commands') as $command) {
            $this->add($command);
        }
        $this->setDispatcher($this->container->get('console_event_dispatcher'));
        $this->container->get('console.io')->setConsoleWidth(class_exists(Terminal::class) ? (new Terminal())->getWidth() : $this->getTerminalWidth());
        StreamWrapper::reset();
        foreach ($this->container->getByTag('loader.resource_loader.spec_transformer') as $transformer) {
            StreamWrapper::addTransformer($transformer);
        }
        StreamWrapper::register();
        return parent::doRun($input, $output);
    }