MediaWiki REL1_31
|
Factory facilitating dependency injection for Command. More...
Public Member Functions | |
__construct (array $limits, $cgroup, $restrictionMethod) | |
Constructor. | |
create () | |
Instantiates a new Command. | |
logStderr ( $yesno=true) | |
When enabled, text sent to stderr will be logged with a level of 'error'. | |
Private Member Functions | |
findFirejail () | |
Private Attributes | |
string bool | $cgroup |
bool | $doLogStderr = false |
string bool | $firejail |
array | $limits |
string bool | $restrictionMethod |
Factory facilitating dependency injection for Command.
Definition at line 32 of file CommandFactory.php.
MediaWiki\Shell\CommandFactory::__construct | ( | array | $limits, |
$cgroup, | |||
$restrictionMethod ) |
Constructor.
array | $limits | See { |
string | bool | $cgroup | See { |
string | bool | $restrictionMethod |
Definition at line 61 of file CommandFactory.php.
References MediaWiki\Shell\CommandFactory\$cgroup, MediaWiki\Shell\CommandFactory\$limits, MediaWiki\Shell\CommandFactory\$restrictionMethod, and MediaWiki\Shell\CommandFactory\findFirejail().
MediaWiki\Shell\CommandFactory::create | ( | ) |
Instantiates a new Command.
Definition at line 100 of file CommandFactory.php.
References $command, MediaWiki\Shell\CommandFactory\findFirejail(), and MediaWiki\Shell\Shell\RESTRICT_DEFAULT.
|
private |
Definition at line 77 of file CommandFactory.php.
References MediaWiki\Shell\CommandFactory\$firejail, and ExecutableFinder\findInDefaultPaths().
Referenced by MediaWiki\Shell\CommandFactory\__construct(), and MediaWiki\Shell\CommandFactory\create().
MediaWiki\Shell\CommandFactory::logStderr | ( | $yesno = true | ) |
When enabled, text sent to stderr will be logged with a level of 'error'.
bool | $yesno |
Definition at line 91 of file CommandFactory.php.
|
private |
Definition at line 39 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\__construct().
|
private |
Definition at line 42 of file CommandFactory.php.
|
private |
Definition at line 52 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\findFirejail().
|
private |
Definition at line 36 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\__construct().
|
private |
Definition at line 47 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\__construct().