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
CommandRendererBackground.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Shell
;
7
8
use
Magento\Framework\OsInfo
;
9
10
class
CommandRendererBackground
extends
CommandRenderer
11
{
15
protected
$osInfo
;
16
20
public
function
__construct
(
OsInfo
$osInfo
)
21
{
22
$this->osInfo =
$osInfo
;
23
}
24
32
public
function
render
($command, array
$arguments
= [])
33
{
34
$command = parent::render($command,
$arguments
);
35
36
return
$this->osInfo->isWindows() ?
37
'start /B "magento background task" '
. $command
38
: str_replace(
'2>&1'
,
'> /dev/null &'
, $command);
39
}
40
}
Magento\Framework\Shell\CommandRendererBackground
Definition:
CommandRendererBackground.php:10
Magento\Framework\Shell
Definition:
CommandRenderer.php:6
Magento\Framework\Shell\CommandRenderer
Definition:
CommandRenderer.php:8
Magento\Framework\Shell\CommandRendererBackground\render
render($command, array $arguments=[])
Definition:
CommandRendererBackground.php:32
Magento\Framework\Shell\CommandRendererBackground\__construct
__construct(OsInfo $osInfo)
Definition:
CommandRendererBackground.php:20
Magento\Framework\Shell\CommandRendererBackground\$osInfo
$osInfo
Definition:
CommandRendererBackground.php:15
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\OsInfo
Definition:
OsInfo.php:11