src/Command/InfectionCommand.php
protected function initialize(InputInterface $input, OutputInterface $output): void
    {
        parent::initialize($input, $output);

        $locator = $this->getContainer()->get('locator');

        if ($customConfigPath = $input->getOption('configuration')) {
            $locator->locate($customConfigPath);
        } else {
            $this->runConfigurationCommand($locator);
        }

        $this->consoleOutput = $this->getApplication()->getConsoleOutput();
        $this->skipCoverage = \strlen(trim($input->getOption('coverage'))) > 0;
        $this->eventDispatcher = $this->getContainer()->get('dispatcher');
    }
protected function initialize(InputInterface $input, OutputInterface $output): void
    {
        parent::initialize($input, $output);

        $locator = $this->getContainer()->get('locator');

        if ($customConfigPath = $input->getOption('configuration')) {
            $locator->locate($customConfigPath);
        } else {
            $this->runConfigurationCommand($locator);
        }

        $this->consoleOutput = $this->getApplication()->getConsoleOutput();
        $this->skipCoverage = \strlen(trim($input->getOption('coverage'))) > 0;
        $this->eventDispatcher = $this->getContainer()->get('dispatcher');
    }
protected function initialize ( InputInterface $ input , OutputInterface $ output ) : void { parent :: initialize ( $ input , $ output ) ; $ locator = $ this -> getContainer ( ) -> get ( 'locator' ) ; if ( $ customConfigPath = $ input -> getOption ( 'configuration' ) ) { $ locator -> locate ( $ customConfigPath ) ; } else { $ this -> runConfigurationCommand ( $ locator ) ; } $ this -> consoleOutput = $ this -> getApplication ( ) -> getConsoleOutput ( ) ; $ this -> skipCoverage = \ strlen ( trim ( $ input -> getOption ( 'coverage' ) ) ) > 0 ; $ this -> eventDispatcher = $ this -> getContainer ( ) -> get ( 'dispatcher' ) ; }
Run configuration command if config does not exist


@throws InfectionException
Run configuration command if config does not exist