writeln('Importing fixtures, this will take a while ... please be patient ...'); $process = new PhpSubprocess( [ 'bin/console', 'doctrine:fixtures:load', '--no-interaction', ], $this->projectDirectory ); $process->run(); if (!$process->isSuccessful()) { $io->error('Failed to load fixtures'); $io->error($process->getErrorOutput()); } else { if ($io->isVerbose()) { $io->write($process->getOutput()); } else { $io->success('Fixtures loaded'); } } } }