|
| __construct (ObjectFactory $objectFactory, array $jobObjectSpecs) |
|
| newJob (string $command, $params=[]) |
| Create the appropriate object to handle a specific job.
|
|
- Since
- 1.40
Definition at line 16 of file JobFactory.php.
◆ __construct()
MediaWiki\JobQueue\JobFactory::__construct |
( |
ObjectFactory | $objectFactory, |
|
|
array | $jobObjectSpecs ) |
- Parameters
-
ObjectFactory | $objectFactory | |
| array<array|callable|string> | $jobObjectSpecs Object specs, see ObjectFactory |
Definition at line 27 of file JobFactory.php.
◆ newJob()
MediaWiki\JobQueue\JobFactory::newJob |
( |
string | $command, |
|
|
| $params = [] ) |
Create the appropriate object to handle a specific job.
- Note
- For backwards compatibility with Job::factory, this method also supports an alternative signature:
newJob(
string $command,
array $params
)
- Parameters
-
string | $command | Job command |
array | $params | Job parameters |
- Returns
- Job
- Exceptions
-
Definition at line 51 of file JobFactory.php.
The documentation for this class was generated from the following file: