コード例 #1
0
ファイル: EachCommand.php プロジェクト: bensb/phpbrew
 protected function runCommandRecursive($command)
 {
     $phpbrew = new PhpBrew();
     foreach ($this->getVersions() as $version) {
         $this->logger->info("Running `{$command}` for php-{$version}");
         $phpbrew->run(preg_split('#\\s+#', $command), $version, !$this->options->debug);
     }
     $this->logger->success("Done!");
 }
コード例 #2
0
ファイル: EachCommand.php プロジェクト: WebDevJL/phpbrew
 protected function runCommandRecursive($command)
 {
     $phpbrew = new PhpBrew();
     foreach ($this->getVersions() as $version) {
         $this->logger->info($this->formatter->format("Running `{$command}` for php-{$version}:", 'bold'));
         $output = trim($phpbrew->run(preg_split('#\\s+#', $command), $version, true));
         if (!empty($output)) {
             $this->logger->info($output);
         }
     }
 }