| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class QueryDetectorServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Bootstrap the application services. |
||
| 12 | */ |
||
| 13 | public function boot() |
||
| 14 | { |
||
| 15 | if ($this->app->runningInConsole()) { |
||
| 16 | $this->publishes([ |
||
| 17 | __DIR__.'/../config/config.php' => config_path('querydetector.php'), |
||
| 18 | ], 'config'); |
||
| 19 | } |
||
| 20 | |||
| 21 | $this->registerMiddleware(QueryDetectorMiddleware::class); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Register the application services. |
||
| 26 | */ |
||
| 27 | public function register() |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Register the middleware |
||
| 38 | * |
||
| 39 | * @param string $middleware |
||
| 40 | */ |
||
| 41 | protected function registerMiddleware($middleware) |
||
| 47 |