| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class RespondServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Perform post-registration booting of services. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function boot() |
||
| 15 | { |
||
| 16 | |||
| 17 | if (class_exists('\App')) { |
||
| 18 | $lang = \App::getLocale(); |
||
| 19 | } else { |
||
| 20 | $lang = /** @scrutinizer ignore-call */ |
||
| 21 | app('translator')->getLocale(); |
||
| 22 | } |
||
| 23 | |||
| 24 | $this->publishes([ |
||
| 25 | __DIR__ . '/../errors/lang/' . $lang . '.php' => config_path($lang . '.php'), |
||
|
|
|||
| 26 | ]); |
||
| 27 | |||
| 28 | } |
||
| 29 | |||
| 30 | |||
| 31 | /** |
||
| 32 | * Register any package services. |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function register() |
||
| 40 | |||
| 41 | } |
||
| 42 | |||
| 43 | private function registerMessages() |
||
| 49 | |||
| 50 | }); |
||
| 55 |