Skip to content

Commit

Permalink
fix: don't wrap command in an array, cast to array if string
Browse files Browse the repository at this point in the history
From DataDefs it's already an array, leading to double wrapping
  • Loading branch information
dkarlovi authored Jul 20, 2022
1 parent e13fc3f commit 342b6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ProcessManagerBundle/Process/Pimcore.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class Pimcore implements ProcessInterface
public function run(ExecutableInterface $executable, array $params = []): int
{
$settings = $executable->getSettings();
$command = $settings['command'];
$command = (array) $settings['command'];

return Console::runPhpScriptInBackground(PIMCORE_PROJECT_ROOT . "/bin/console", [$command]);
return Console::runPhpScriptInBackground(PIMCORE_PROJECT_ROOT . "/bin/console", $command);
}
}

0 comments on commit 342b6f7

Please sign in to comment.