| Total Complexity | 6 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 90.48% |
| 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(): void |
|
| 23 | 47 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Register the application services. |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | 47 | public function register(): void |
|
| 34 | 47 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function provides() |
||
| 40 | { |
||
| 41 | return [ |
||
| 42 | Authorizer::class, |
||
| 43 | ]; |
||
| 44 | } |
||
| 45 | |||
| 46 | 47 | private function publish(): void |
|
| 47 | { |
||
| 48 | 47 | $this->publishes([ |
|
| 49 | 47 | __DIR__ . "/../database/migrations" => database_path('migrations'), |
|
| 50 | 47 | __DIR__ . "/../config/authorization.php" => base_path('config/authorization.php') |
|
| 51 | ]); |
||
| 52 | 47 | } |
|
| 53 | |||
| 54 | 47 | private function registerBindings(): void |
|
| 59 | 47 | } |
|
| 60 | |||
| 61 | 47 | private function configDriver(): void |
|
| 64 | 47 | } |
|
| 65 | } |
||
| 66 |