Skip to content

Instantly share code, notes, and snippets.

@martinlipp
Last active September 26, 2019 08:14
Show Gist options
  • Save martinlipp/19cdbfd9ff8946e755db5ea0e72a8d16 to your computer and use it in GitHub Desktop.
Save martinlipp/19cdbfd9ff8946e755db5ea0e72a8d16 to your computer and use it in GitHub Desktop.
src/Application/Neos/Flow.php
<?php
public function buildCommand($targetPath, $command, array $arguments = [])
{
$phpBinaryPathAndFilename = isset($this->options['phpBinaryPathAndFilename']) ? ' ' . $this->options['phpBinaryPathAndFilename'] : '';
return 'cd ' . $targetPath . ' && FLOW_CONTEXT=' . $this->getContext()
. $phpBinaryPathAndFilename . ' ./' . $this->getFlowScriptName() . ' ' . $this->getCommandPackageKey($command) . ':' . $command . ' '
. implode(' ', array_map('escapeshellarg', $arguments));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment