Factory facilitating dependency injection for Command.
More...
|
| __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'.
|
|
Factory facilitating dependency injection for Command.
- Since
- 1.30
Definition at line 35 of file CommandFactory.php.
◆ __construct()
MediaWiki\Shell\CommandFactory::__construct |
( |
ShellboxClientFactory | $shellboxClientFactory, |
|
|
array | $limits, |
|
|
| $cgroup, |
|
|
| $restrictionMethod ) |
◆ create()
MediaWiki\Shell\CommandFactory::create |
( |
| ) |
|
◆ createBoxed()
MediaWiki\Shell\CommandFactory::createBoxed |
( |
?string | $service = null, |
|
|
| $wallTimeLimit = null ) |
Instantiates a new BoxedCommand.
- Since
- 1.36
- Parameters
-
?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. |
- Returns
- BoxedCommand
Definition at line 180 of file CommandFactory.php.
◆ findFirejail()
MediaWiki\Shell\CommandFactory::findFirejail |
( |
| ) |
|
|
protected |
◆ logStderr()
MediaWiki\Shell\CommandFactory::logStderr |
( |
bool | $yesno = true | ) |
|
When enabled, text sent to stderr will be logged with a level of 'error'.
- Parameters
-
- See also
- Command::logStderr
Definition at line 105 of file CommandFactory.php.
The documentation for this class was generated from the following file: