Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CommandRenderer.php
Go to the documentation of this file.
1 <?php
7 
9 {
17  public function render($command, array $arguments = [])
18  {
19  $command = preg_replace('/(\s+2>&1)*(\s*\|)|$/', ' 2>&1$2', $command);
20  $arguments = array_map('escapeshellarg', $arguments);
21  if (empty($arguments)) {
22  return $command;
23  }
24  return vsprintf($command, $arguments);
25  }
26 }
$arguments
render($command, array $arguments=[])