Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function handleInternal() |
||
37 | { |
||
38 | $queueId = (string) $this->input->getArgument('queue'); |
||
39 | |||
40 | if (! $this->carrot->container()->queues()->has($queueId)) { |
||
41 | $this->error(vsprintf('Queue "%s" not found.', [$queueId])); |
||
42 | return 0; |
||
43 | } |
||
44 | |||
45 | $queue = $this->carrot->container()->queues()->get($queueId); |
||
46 | |||
47 | $queue->purge(); |
||
48 | |||
49 | return 0; |
||
50 | } |
||
53 |