Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CelcatWebAPIServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Indicates if loading of the provider is deferred. |
||
16 | * |
||
17 | * @var bool |
||
18 | */ |
||
19 | protected $defer = false; |
||
20 | |||
21 | /** |
||
22 | * Bootstrap the application services. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function boot() |
||
27 | { |
||
28 | $this->bootInConsole(); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Register the application services. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function register() |
||
37 | { |
||
38 | $this->mergeConfigFrom( |
||
39 | __DIR__.'/Config/config.php', |
||
40 | 'celcat' |
||
41 | ); |
||
42 | |||
43 | $this->app->singleton('CelcatWebAPI', function($app) { |
||
44 | return new CelcatWebAPI($app['config']); |
||
45 | }); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | */ |
||
51 | protected function bootInConsole() |
||
57 | } |
||
58 | } |
||
59 | } |
||
60 |