1 | <?php |
||
16 | class Controller |
||
17 | { |
||
18 | use EventDispatcherTrait; |
||
19 | use TimeTrait; |
||
20 | |||
21 | /** |
||
22 | * @var MessageQueueGateway |
||
23 | */ |
||
24 | private $gateway; |
||
25 | |||
26 | /** |
||
27 | * @Inject({"@MessageQueue.Gateway"}) |
||
28 | * @param MessageQueueGateway $gateway |
||
29 | */ |
||
30 | 2 | public function __construct(MessageQueueGateway $gateway) |
|
34 | |||
35 | /** |
||
36 | * @Route("/jobs/{type}/", name="status.jobs.type", methods="GET") |
||
37 | * @param Request $request |
||
38 | * @param string $type |
||
39 | * @return Job[] |
||
40 | */ |
||
41 | 1 | public function getJobs(Request $request, $type) |
|
51 | |||
52 | /** |
||
53 | * @Route("/jobs/{jobId}/", methods="DELETE", name="messageQueue.deleteJob") |
||
54 | * @param Request $request |
||
55 | * @param $jobId |
||
56 | * @return bool |
||
57 | */ |
||
58 | 1 | public function deleteJob(Request $request, $jobId) |
|
66 | } |
||
67 |