1 | <?php |
||
8 | use BringYourOwnIdeas\UpdateChecker\Tasks\CheckComposerUpdatesTask; |
||
9 | use SilverStripe\Control\HTTPRequest; |
||
10 | use Symbiote\QueuedJobs\Services\AbstractQueuedJob; |
||
11 | |||
12 | /** |
||
13 | * Composer update checker job. Runs the check as a queuedjob. |
||
14 | * |
||
15 | * @author Peter Thaleikis |
||
16 | * @license MIT |
||
17 | */ |
||
18 | class CheckComposerUpdatesJob extends AbstractQueuedJob implements QueuedJob |
||
19 | { |
||
20 | /** |
||
21 | * The task to run |
||
22 | * |
||
23 | * @var BuildTask |
||
24 | */ |
||
25 | protected $task; |
||
26 | |||
27 | /** |
||
28 | * define the title |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getTitle() |
||
37 | ); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * define the type. |
||
42 | */ |
||
43 | public function getJobType() |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * init |
||
52 | */ |
||
53 | public function setup() |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * processes the task as a job |
||
61 | */ |
||
71 |