| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 18 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 63 | public function boot() |
|
| 17 | { |
||
| 18 | 63 | $source = realpath(__DIR__ . '/../Config/config.php'); |
|
| 19 | |||
| 20 | 63 | $this->publishes([ |
|
| 21 | 63 | __DIR__ . '/../Config/config.php' => config_path('triadev-elasticsearch-migration.php'), |
|
| 22 | 63 | ], 'config'); |
|
| 23 | |||
| 24 | 63 | $this->mergeConfigFrom($source, 'triadev-elasticsearch-migration'); |
|
| 25 | |||
| 26 | 63 | $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); |
|
| 27 | |||
| 28 | 63 | $this->commands([ |
|
| 29 | 63 | ImportFileMigrations::class |
|
| 30 | ]); |
||
| 31 | |||
| 32 | 63 | $this->app->bind( |
|
| 33 | 63 | \Triadev\EsMigration\Contract\Repository\ElasticsearchMigrationContract::class, |
|
| 34 | function () { |
||
| 35 | 63 | return app()->make( |
|
| 36 | 63 | \Triadev\EsMigration\Business\Repository\ElasticsearchMigration::class |
|
| 37 | ); |
||
| 38 | 63 | } |
|
| 39 | ); |
||
| 40 | |||
| 41 | 63 | $this->app->bind( |
|
| 42 | 63 | \Triadev\EsMigration\Contract\Repository\ElasticsearchMigrationStepContract::class, |
|
| 43 | function () { |
||
| 44 | 63 | return app()->make( |
|
| 45 | 63 | \Triadev\EsMigration\Business\Repository\ElasticsearchMigrationStep::class |
|
| 46 | ); |
||
| 63 |