Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. public function buildCommand($targetPath, $command, array $arguments = [])
  4. {
  5. $phpBinaryPathAndFilename = isset($this->options['phpBinaryPathAndFilename']) ? ' ' . $this->options['phpBinaryPathAndFilename'] : '';
  6. return 'cd ' . $targetPath . ' && FLOW_CONTEXT=' . $this->getContext()
  7. . $phpBinaryPathAndFilename . ' ./' . $this->getFlowScriptName() . ' ' . $this->getCommandPackageKey($command) . ':' . $command . ' '
  8. . implode(' ', array_map('escapeshellarg', $arguments));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement