protected function runCommandInForeground(Application $app) { (new Process(trim($this->buildCommand(), '& '), dirname($app->request->getScriptFile()), null, null, null))->run(); $this->callAfterCallbacks($app); }