| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CloudMessageServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Bootstrap the application services. |
||
| 11 | */ |
||
| 12 | public function boot() |
||
| 13 | { |
||
| 14 | // if ($this->app->runningInConsole() && function_exists('config_path')) { // function not available and 'publish' not relevant in Lumen |
||
| 15 | $this->publishes([ |
||
| 16 | $this->getConfigFile() => config_path('cloud_message.php'), |
||
| 17 | ], 'config'); |
||
| 18 | |||
| 19 | // } |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Register the application services. |
||
| 24 | */ |
||
| 25 | public function register() |
||
| 26 | { |
||
| 27 | // Automatically apply the package configuration |
||
| 28 | $this->mergeConfigFrom($this->getConfigFile(), 'cloud_message'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | protected function getConfigFile(): string |
||
| 37 | } |
||
| 38 | } |
||
| 39 |