| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 27 | public function register() |
||
| 28 | { |
||
| 29 | // Register the migration repository service. |
||
| 30 | $this->app->singleton('migration.repository', function ($app) { |
||
| 31 | $table = $app['config']['database.migrations']; |
||
| 32 | |||
| 33 | return new DatabaseMigrationRepository($app['db'], $table); |
||
| 34 | }); |
||
| 35 | |||
| 36 | // The migrator is responsible for actually running and rollback the migration |
||
| 37 | // files in the application. We'll pass in our database connection resolver |
||
| 38 | // so the migrator can resolve any of these connections when it needs to. |
||
| 39 | $this->app->singleton('migrator', function ($app) { |
||
| 40 | $repository = $app['migration.repository']; |
||
| 41 | |||
| 42 | return new Migrator($repository, $app['db'], $app['files']); |
||
| 43 | }); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |