Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
12 | class TimezonesServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Bootstrap the application events. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | public function boot() |
||
20 | { |
||
21 | // |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Register the service provider. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function register() |
||
30 | { |
||
31 | |||
32 | // $this->app->singleton('timezones', function ($app) { |
||
33 | // return new Timezones; |
||
34 | // }); |
||
35 | |||
36 | $this->app->bind(Timezones::class, function() { |
||
37 | return new Timezones; |
||
38 | // $loader = AliasLoader::getInstance(); |
||
39 | // $loader->alias('Timezones', 'jessedp\Timezones\Facades\Timezones'); |
||
40 | }); |
||
41 | |||
42 | $this->app->alias(Timezones::class, 'timezones'); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Get the services provided by the provider. |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | public function provides() |
||
53 | } |
||
54 | } |
||
55 |