Don't need to pass multiple arguments as a string

`./bin/console run -- --e prod --port 8001` now works without wrapping
multiple arbitrary arguments within a string.
This commit is contained in:
Oliver Davies 2024-03-12 23:59:26 +00:00
parent f94736183e
commit d289a01f3a
6 changed files with 18 additions and 15 deletions

View file

@ -39,7 +39,7 @@ final class InstallCommand extends AbstractCommand
// TODO: Composer in Docker Compose?
$process = Process::create(
args: explode(separator: ' ', string: strval($args)),
args: $args,
command: $this->getCommand(language: $language, workingDir: $workingDir),
workingDir: $workingDir,
);