Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
12 | class MongoAutoSyncServiceProvider extends BaseServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Bootstrap the application services. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | public function boot() |
||
20 | { |
||
21 | $this->app->bind('command.model-doc:generate', GenerateModelDocumentation::class); |
||
22 | $this->app->bind('command.drop:collection', DropCollection::class); |
||
23 | |||
24 | $this->commands([ |
||
25 | 'command.model-doc:generate', |
||
26 | ]); |
||
27 | |||
28 | $this->commands([ |
||
29 | 'command.drop:collection', |
||
30 | ]); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Register the application services. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function register() |
||
39 | { |
||
40 | $this->mergeConfigFrom( |
||
41 | $this->packagePath('config/laravel-mongo-auto-sync.php'), |
||
42 | 'laravel-mongo-auto-sync' |
||
43 | ); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param $path |
||
48 | * @return string |
||
49 | */ |
||
50 | private function packagePath($path) |
||
53 | } |
||
54 | } |
||
55 |