Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class BinListServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | /** |
||
13 | * Register the service provider. |
||
14 | * |
||
15 | * @return void |
||
16 | */ |
||
17 | 21 | public function register(): void |
|
18 | { |
||
19 | 21 | $this->registerBindings(); |
|
20 | 21 | } |
|
21 | |||
22 | /** |
||
23 | * Register the factory class. |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | 21 | protected function registerBindings(): void |
|
28 | { |
||
29 | 21 | $this->app->singleton( |
|
30 | 21 | 'binlist', |
|
31 | function () { |
||
32 | 6 | return new BinList(); |
|
33 | 21 | } |
|
34 | ); |
||
35 | |||
36 | 21 | $this->app->alias('binlist', BinList::class); |
|
37 | 21 | } |
|
38 | |||
39 | /** |
||
40 | * Get the services provided by the provider. |
||
41 | * |
||
42 | * @return string[] |
||
43 | */ |
||
44 | 6 | public function provides(): array |
|
48 | ]; |
||
49 | } |
||
50 | } |
||
51 |