jobqueue: simplify the signature of Job::factory() and Job::__construct()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 29 Mar 2019 20:15:58 +0000 (13:15 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 29 Mar 2019 20:15:58 +0000 (13:15 -0700)
commit9b4938c40d02c43f8cec7471e73634532ab9b388
treede6ee2b543b3b15044aca534346db83033734953
parente17e9ea5192cf4f544fe349390b65cd63b7ba26e
jobqueue: simplify the signature of Job::factory() and Job::__construct()

Remove the $title argument from these methods to simplify subclasses that
do not have a meaningful title to use. The Job::getTitle() method can be
overriden by subclasses to return something meaningful.

The old call signature is still supported for backwards compatibility.
This will automatically determine what getTitle() returns as before.

Use "Blankpage" as the "not applicable" title for jobs instead of one
that looks like some error occured.

Change-Id: I3d5bd012d9cef1e7daaccfb0d5d319552eb89fb6
includes/jobqueue/Job.php
includes/jobqueue/JobSpecification.php