getCLI() public method

public getCLI ( ) : CLI
return CLI
示例#1
0
 /**
  * @param string $configFile
  * @throws \RuntimeException
  */
 private function runPhpDoxCollector($configFile)
 {
     $exitCode = $this->factory->getCLI()->run(new CLIOptions(['--file', $configFile, '--collector']));
     if ($exitCode !== CLI::ExitOK) {
         throw new \RuntimeException("Impossible to collect units metadata");
     }
 }