protected function run($command, $projectPath, OutputInterface $output) { $process = new Process($command, $projectPath, array_merge($_SERVER, $_ENV), null, null); $process->run(function ($type, $line) use($output) { $output->write($line); }); }