| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function register() |
||
| 34 | { |
||
| 35 | $this->publishes( |
||
| 36 | [ |
||
| 37 | __DIR__ . '/../../../config/search.php' => config_path('search.php'), |
||
| 38 | ] |
||
| 39 | ); |
||
| 40 | |||
| 41 | $this->app->singleton( |
||
| 42 | 'command.search.rebuild', function () { |
||
| 43 | return new RebuildCommand; |
||
| 44 | } |
||
| 45 | ); |
||
| 46 | |||
| 47 | $this->app->singleton( |
||
| 48 | 'command.search.clear', function () { |
||
| 49 | return new ClearCommand; |
||
| 50 | } |
||
| 51 | ); |
||
| 52 | |||
| 53 | $this->app->singleton( |
||
| 54 | 'command.search.optimise', function () { |
||
| 55 | return new OptimiseCommand; |
||
| 56 | } |
||
| 57 | ); |
||
| 58 | |||
| 59 | $this->commands([ 'command.search.rebuild', 'command.search.optimise', 'command.search.clear' ]); |
||
| 60 | } |
||
| 61 | |||
| 71 |