| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function boot(): void |
||
| 17 | { |
||
| 18 | if ($this->app->runningInConsole()) { |
||
| 19 | return; |
||
| 20 | } |
||
| 21 | |||
| 22 | $this->mergeConfigFrom( |
||
| 23 | dirname(__DIR__) . '/config/config.php', |
||
| 24 | 'xhprof' |
||
| 25 | ); |
||
| 26 | |||
| 27 | $this->app->singleton(XHProfMiddleware::class); |
||
| 28 | $this->app->singleton(XHProfService::class); |
||
| 29 | |||
| 30 | if (config('xhprof.global_middleware', false)) { |
||
| 31 | $this->extraMiddleware(XHProfMiddleware::class); |
||
| 32 | } |
||
| 48 |