Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
11 | class LayerProvider extends ServiceProvider |
||
12 | { |
||
13 | /** |
||
14 | * Bootstrap the application services. |
||
15 | * |
||
16 | * @return void |
||
17 | */ |
||
18 | public function boot() |
||
19 | { |
||
20 | $this->publishes([ |
||
21 | __DIR__ . '/../config/layer.php' => $this->app->make('path.config') . '/layer.php' |
||
22 | ], 'config'); |
||
23 | |||
24 | $this->app->bind('Aosmak\Laravel\Layer\Sdk\Services\LayerServiceInterface', function ($app) { |
||
25 | $service = $app->make('Aosmak\Laravel\Layer\Sdk\Services\LayerService'); |
||
26 | $service->setConfig($app['config']['layer']); |
||
27 | |||
28 | return $service; |
||
29 | }); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Register the application services. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function register() |
||
38 | { |
||
39 | // |
||
42 |