Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (CommandRendererInterface $commandRenderer, \Psr\Log\LoggerInterface $logger=null) | |
execute ($command, array $arguments=[]) | |
Protected Member Functions | |
log ($message) | |
Protected Attributes | |
$logger | |
Shell command line wrapper encapsulates command execution and arguments escaping
__construct | ( | CommandRendererInterface | $commandRenderer, |
\Psr\Log\LoggerInterface | $logger = null |
||
) |
CommandRendererInterface | $commandRenderer | |
\Psr\Log\LoggerInterface | $logger | Logger instance to be used to log commands and their output |
Definition at line 32 of file Shell.php.
execute | ( | $command, | |
array | $arguments = [] |
||
) |
Execute a command through the command line, passing properly escaped arguments, and return its output
string | $command | Command with optional argument markers 's' |
string[] | $arguments Argument values to substitute markers with |
Implements ShellInterface.
Definition at line 48 of file Shell.php.
|
protected |