MediaWiki REL1_37
|
Factory facilitating dependency injection for Command. More...
Public Member Functions | |
__construct (ShellboxClientFactory $shellboxClientFactory, array $limits, $cgroup, $restrictionMethod) | |
create () | |
Instantiates a new Command. | |
createBoxed (?string $service=null) | |
Instantiates a new BoxedCommand. | |
logStderr (bool $yesno=true) | |
When enabled, text sent to stderr will be logged with a level of 'error'. | |
Protected Member Functions | |
findFirejail () | |
Private Member Functions | |
getLocalShellboxOptions () | |
Get the options which will be used for local unboxed execution. | |
Private Attributes | |
string bool | $cgroup |
bool | $doLogStderr = false |
string bool null | $firejail |
array | $limits |
string bool | $restrictionMethod |
ShellboxClientFactory | $shellboxClientFactory |
bool | $useAllUsers |
Factory facilitating dependency injection for Command.
Definition at line 35 of file CommandFactory.php.
MediaWiki\Shell\CommandFactory::__construct | ( | ShellboxClientFactory | $shellboxClientFactory, |
array | $limits, | ||
$cgroup, | |||
$restrictionMethod | |||
) |
ShellboxClientFactory | $shellboxClientFactory | |
array | $limits | See { |
string | bool | $cgroup | See { |
string | bool | $restrictionMethod |
Definition at line 69 of file CommandFactory.php.
References MediaWiki\Shell\CommandFactory\$cgroup, MediaWiki\Shell\CommandFactory\$limits, MediaWiki\Shell\CommandFactory\$restrictionMethod, MediaWiki\Shell\CommandFactory\$shellboxClientFactory, and MediaWiki\Shell\CommandFactory\findFirejail().
MediaWiki\Shell\CommandFactory::create | ( | ) |
Instantiates a new Command.
Definition at line 139 of file CommandFactory.php.
References $IP.
MediaWiki\Shell\CommandFactory::createBoxed | ( | ?string | $service = null | ) |
Instantiates a new BoxedCommand.
?string | $service Name of Shellbox (as configured in $wgShellboxUrls) that should be used |
Definition at line 179 of file CommandFactory.php.
|
protected |
Definition at line 91 of file CommandFactory.php.
References MediaWiki\Shell\CommandFactory\$firejail, and ExecutableFinder\findInDefaultPaths().
Referenced by MediaWiki\Shell\CommandFactory\__construct().
|
private |
Get the options which will be used for local unboxed execution.
Shellbox should be configured to act in an approximately backwards compatible way, equivalent to the pre-Shellbox MediaWiki shell classes.
Definition at line 116 of file CommandFactory.php.
References wfTempDir().
MediaWiki\Shell\CommandFactory::logStderr | ( | bool | $yesno = true | ) |
When enabled, text sent to stderr will be logged with a level of 'error'.
bool | $yesno |
Definition at line 105 of file CommandFactory.php.
|
private |
Definition at line 42 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\__construct().
|
private |
Definition at line 45 of file CommandFactory.php.
|
private |
Definition at line 55 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\findFirejail().
|
private |
Definition at line 39 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\__construct().
|
private |
Definition at line 50 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\__construct().
|
private |
Definition at line 61 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\__construct().
|
private |
Definition at line 58 of file CommandFactory.php.