public function buildCommand($targetPath, $command, array $arguments = [])
    {
        return 'cd ' . $targetPath . ' && FLOW_CONTEXT=' . $this->getContext() .
            ' ./' . $this->getFlowScriptName() . ' ' . $this->getCommandPackageKey($command) . ':' . $command . ' '
            . implode(' ', array_map('escapeshellarg', $arguments));
    }
public function buildCommand($targetPath, $command, array $arguments = [])
    {
        return 'cd ' . $targetPath . ' && FLOW_CONTEXT=' . $this->getContext() .
            ' ./' . $this->getFlowScriptName() . ' ' . $this->getCommandPackageKey($command) . ':' . $command . ' '
            . implode(' ', array_map('escapeshellarg', $arguments));
    }
public function buildCommand ( $ targetPath , $ command , array $ arguments = [ ] ) { return 'cd ' . $ targetPath . ' && FLOW_CONTEXT=' . $ this -> getContext ( ) . ' ./' . $ this -> getFlowScriptName ( ) . ' ' . $ this -> getCommandPackageKey ( $ command ) . ':' . $ command . ' ' . implode ( ' ' , array_map ( 'escapeshellarg' , $ arguments ) ) ; }
Returns a executable flow command including the context

@param string $targetPath the path where the command should be executed
@param string $command the actual command for example `cache:flush`
@param array $arguments list of arguments which will be appended to the command
@return string
Returns a executable flow command including the context