Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Shell
CommandRenderer.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Shell
;
7
8
class
CommandRenderer
implements
CommandRendererInterface
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
}
Magento\Framework\Shell\CommandRendererInterface
Definition:
CommandRendererInterface.php:14
Magento\Framework\Shell
Definition:
CommandRenderer.php:6
Magento\Framework\Shell\CommandRenderer
Definition:
CommandRenderer.php:8
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\Shell\CommandRenderer\render
render($command, array $arguments=[])
Definition:
CommandRenderer.php:17