Conditions | 4 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function boot() |
||
18 | { |
||
19 | if ($this->app instanceof LaravelApplication && !$this->app->runningInConsole()) { |
||
20 | /** @var Kernel $kernel */ |
||
21 | $kernel = $this->app->make(Kernel::class); |
||
22 | $kernel->prependMiddleware(Middleware::class); |
||
23 | } elseif ($this->app instanceof LumenApplication) { |
||
24 | $this->app->middleware([Middleware::class]); |
||
25 | } |
||
48 |