MediaWiki  1.30.2
MediaWiki\Shell\CommandFactory Class Reference

Factory facilitating dependency injection for Command. More...

Collaboration diagram for MediaWiki\Shell\CommandFactory:

Public Member Functions

 __construct (array $limits, $cgroup)
 Constructor. More...
 
 create ()
 Instantiates a new Command. More...
 

Private Attributes

string bool $cgroup
 
array $limits
 

Detailed Description

Factory facilitating dependency injection for Command.

Since
1.30

Definition at line 31 of file CommandFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Shell\CommandFactory::__construct ( array  $limits,
  $cgroup 
)

Constructor.

Parameters
array$limitsSee {
See also
Command::limits()}
Parameters
string | bool$cgroupSee {
See also
Command::cgroup()}

Definition at line 46 of file CommandFactory.php.

References MediaWiki\Shell\CommandFactory\$cgroup, and MediaWiki\Shell\CommandFactory\$limits.

Member Function Documentation

◆ create()

MediaWiki\Shell\CommandFactory::create ( )

Instantiates a new Command.

Returns
Command

Definition at line 57 of file CommandFactory.php.

References $command.

Member Data Documentation

◆ $cgroup

string bool MediaWiki\Shell\CommandFactory::$cgroup
private

Definition at line 38 of file CommandFactory.php.

Referenced by MediaWiki\Shell\CommandFactory\__construct().

◆ $limits

array MediaWiki\Shell\CommandFactory::$limits
private

Definition at line 35 of file CommandFactory.php.

Referenced by MediaWiki\Shell\CommandFactory\__construct().


The documentation for this class was generated from the following file: