Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
12 | public function boot() |
||
13 | { |
||
14 | $this->app->singleton('queue.pool', function () { |
||
15 | return new QueuePool($this->app->basePath()); |
||
16 | }); |
||
17 | |||
18 | $this->app->singleton('command.queue.pool', function ($app) { |
||
19 | return new QueuePoolCommand($app['queue.pool']); |
||
20 | }); |
||
21 | |||
22 | if ($this->app->runningInConsole()) { |
||
23 | $this->commands([ |
||
24 | 'command.queue.pool', |
||
25 | ]); |
||
26 | } |
||
27 | } |
||
28 | |||
49 |