| Total Complexity | 6 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class AuthorizationServiceProvider extends ServiceProvider |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Bootstrap the application services. |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | 49 | public function boot(): void |
|
| 24 | { |
||
| 25 | 49 | $this->publish(); |
|
| 26 | 49 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Register the application services. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | 49 | public function register(): void |
|
| 34 | { |
||
| 35 | 49 | $this->app->register(EventServiceProvider::class); |
|
| 36 | |||
| 37 | 49 | $this->commands([ |
|
| 38 | 49 | InstallCommand::class |
|
| 39 | ]); |
||
| 40 | |||
| 41 | 49 | $this->registerBindings(); |
|
| 42 | 49 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function provides() |
||
| 48 | { |
||
| 49 | return [ |
||
| 50 | Authorizer::class, |
||
| 51 | ]; |
||
| 52 | } |
||
| 53 | |||
| 54 | 49 | private function publish(): void |
|
| 55 | { |
||
| 56 | 49 | $this->publishes([ |
|
| 57 | 49 | __DIR__ . '/../config/authorization.php' => base_path('config/authorization.php') |
|
| 58 | ]); |
||
| 59 | 49 | } |
|
| 60 | |||
| 61 | 49 | private function registerBindings(): void |
|
| 66 | 49 | } |
|
| 67 | |||
| 68 | 49 | private function configDriver(): void |
|
| 69 | { |
||
| 71 | 49 | } |
|
| 72 | } |
||
| 73 |