Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Distilleries\PermissionUtil; |
||
6 | class PermissionUtilServiceProvider extends ServiceProvider { |
||
7 | |||
8 | |||
9 | protected $package = 'permission-util'; |
||
10 | |||
11 | /** |
||
12 | * Register the service provider. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | 32 | public function register() |
|
17 | { |
||
18 | 32 | $this->mergeConfigFrom( |
|
19 | 32 | __DIR__.'/../../config/config.php', |
|
20 | 32 | $this->package |
|
21 | ); |
||
22 | |||
23 | 32 | $this->registerPermissionUtils(); |
|
24 | |||
25 | |||
26 | } |
||
27 | |||
28 | 32 | protected function registerPermissionUtils() |
|
32 | 32 | }); |
|
33 | } |
||
34 | |||
35 | 32 | public function boot() |
|
36 | { |
||
37 | 32 | $this->loadTranslationsFrom(__DIR__.'/../../resources/lang/', $this->package); |
|
38 | 32 | $this->publishes([ |
|
39 | 32 | __DIR__.'/../../config/config.php' => config_path($this->package.'.php') |
|
40 | ]); |
||
41 | } |
||
42 | |||
43 | |||
44 | /** |
||
45 | * @return string[] |
||
46 | */ |
||
47 | 2 | public function provides() |
|
50 | } |
||
51 | } |