Last active
September 26, 2019 08:14
-
-
Save martinlipp/19cdbfd9ff8946e755db5ea0e72a8d16 to your computer and use it in GitHub Desktop.
src/Application/Neos/Flow.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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