Total Complexity | 10 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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 | } |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Register the service provider. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function register() |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 |