Extract extraArgs
and workingDir
This commit is contained in:
parent
b4e7a71fe3
commit
ee709b2966
5 changed files with 36 additions and 28 deletions
|
@ -11,14 +11,13 @@ final class InstallCommand extends AbstractCommand
|
|||
{
|
||||
public function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
$extraArgs = $input->getOption('extra-args');
|
||||
$workingDir = $input->getOption('working-dir');
|
||||
parent::execute($input, $output);
|
||||
|
||||
// TODO: Composer in Docker Compose?
|
||||
$process = Process::create(
|
||||
command: ['composer', 'install'],
|
||||
extraArgs: $extraArgs,
|
||||
workingDir: $workingDir,
|
||||
extraArgs: $this->extraArgs,
|
||||
workingDir: $this->workingDir,
|
||||
);
|
||||
|
||||
$process->run();
|
||||
|
|
Reference in a new issue