command = $command; } /** * @codeCoverageIgnore */ public function exec($message, $commandline) { $this->command->info($message); $this->command->line($commandline, null, OutputInterface::VERBOSITY_VERBOSE); exec($commandline.' 2>&1', $output); foreach ($output as $line) { $this->command->line($line, null, OutputInterface::VERBOSITY_VERY_VERBOSE); } $this->command->line('', null, OutputInterface::VERBOSITY_VERBOSE); } /** * @codeCoverageIgnore */ public function artisan($message, $commandline, array $arguments = []) { $info = ''; foreach ($arguments as $key => $value) { if (is_string($key)) { $info .= ' '.$key.'="'.$value.'"'; } else { $info .= ' '.$value; } } $this->exec($message, Application::formatCommandString($commandline.$info)); } }