Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function boot() |
||
41 | { |
||
42 | if ($this->app->runningInConsole()) { |
||
43 | $this->publishes([ |
||
44 | __DIR__.'/../config/service-classes.php' => config_path('service-classes.php'), |
||
45 | ]); |
||
46 | } |
||
47 | |||
48 | $this->mergeConfigFrom(__DIR__.'/../config/service-classes.php', 'service-classes'); |
||
49 | |||
50 | $this->commands([ |
||
51 | ServiceMakeCommand::class, |
||
52 | CachedServiceMakeCommand::class, |
||
53 | ]); |
||
54 | |||
55 | ServiceCaller::setHandlerMethod(config('service-classes.method', 'run')); |
||
56 | } |
||
57 | |||
71 |