Total Complexity | 6 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class AuthorizationServiceProvider extends ServiceProvider |
||
14 | { |
||
15 | /** |
||
16 | * Bootstrap the application services. |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | 47 | public function boot() |
|
23 | 47 | } |
|
24 | |||
25 | /** |
||
26 | * Register the application services. |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | 47 | public function register() |
|
31 | { |
||
32 | 47 | $this->app->register(EventServiceProvider::class); |
|
33 | 47 | $this->publish(); |
|
34 | 47 | } |
|
35 | |||
36 | /** |
||
37 | * Bind contracts with concrete objects. |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | 47 | protected function registerBindings() |
|
46 | 47 | } |
|
47 | |||
48 | 47 | private function publish(): void |
|
49 | { |
||
50 | 47 | $this->mergeConfigFrom($this->path('config/authorization.php'), 'authorization'); |
|
51 | 47 | $this->publishes([$this->path('database/migrations/CreateLaravelAuthorizationTables.php') => database_path('migrations')]); |
|
52 | 47 | } |
|
53 | |||
54 | 47 | private function path(string $path): string |
|
55 | { |
||
56 | 47 | return __DIR__ . "/../{$path}"; |
|
57 | } |
||
58 | |||
59 | 47 | private function configDriver(): void |
|
62 | 47 | } |
|
63 | } |
||
64 |