MediaWiki master
|
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, $wallTimeLimit=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 () | |
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 | |
string | bool | $restrictionMethod |
Definition at line 69 of file CommandFactory.php.
References 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, |
$wallTimeLimit = null ) |
Instantiates a new BoxedCommand.
?string | $service | Name of Shellbox (as configured in $wgShellboxUrls) that should be used |
int | float | null | $wallTimeLimit | The wall time limit, or null to use the default. This needs to be set early so that the HTTP timeout is configured correctly. |
Definition at line 182 of file CommandFactory.php.
|
protected |
Definition at line 91 of file CommandFactory.php.
Referenced by MediaWiki\Shell\CommandFactory\__construct().
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.