@@ -8,41 +8,41 @@ |
||
| 8 | 8 | |
| 9 | 9 | class MigrationsOrganiserServiceProvider extends MSP |
| 10 | 10 | { |
| 11 | - public function register() |
|
| 12 | - { |
|
| 13 | - parent::register(); |
|
| 14 | - $this->registerMigrateOrganise(); |
|
| 15 | - $this->registerMigrateDisorganise(); |
|
| 16 | - $this->commands('command.migrate.organise', 'command.migrate.disorganise'); |
|
| 17 | - } |
|
| 18 | - |
|
| 19 | - protected function registerCreator() |
|
| 20 | - { |
|
| 21 | - $this->app->singleton('migration.creator', function ($app) { |
|
| 22 | - return new MigrationCreator($app['files'], $app->basePath('stubs')); |
|
| 23 | - }); |
|
| 24 | - } |
|
| 25 | - |
|
| 26 | - protected function registerMigrator() |
|
| 27 | - { |
|
| 28 | - $this->app->singleton('migrator', function ($app) { |
|
| 29 | - $repository = $app['migration.repository']; |
|
| 30 | - |
|
| 31 | - return new Migrator($repository, $app['db'], $app['files'], $app['events']); |
|
| 32 | - }); |
|
| 33 | - } |
|
| 34 | - |
|
| 35 | - protected function registerMigrateOrganise() |
|
| 36 | - { |
|
| 37 | - $this->app->singleton('command.migrate.organise', function ($app) { |
|
| 38 | - return new MigrateOrganise($app['files'], $app['migrator']); |
|
| 39 | - }); |
|
| 40 | - } |
|
| 41 | - |
|
| 42 | - protected function registerMigrateDisorganise() |
|
| 43 | - { |
|
| 44 | - $this->app->singleton('command.migrate.disorganise', function ($app) { |
|
| 45 | - return new MigrateDisorganise($app['files'], $app['migrator']); |
|
| 46 | - }); |
|
| 47 | - } |
|
| 11 | + public function register() |
|
| 12 | + { |
|
| 13 | + parent::register(); |
|
| 14 | + $this->registerMigrateOrganise(); |
|
| 15 | + $this->registerMigrateDisorganise(); |
|
| 16 | + $this->commands('command.migrate.organise', 'command.migrate.disorganise'); |
|
| 17 | + } |
|
| 18 | + |
|
| 19 | + protected function registerCreator() |
|
| 20 | + { |
|
| 21 | + $this->app->singleton('migration.creator', function ($app) { |
|
| 22 | + return new MigrationCreator($app['files'], $app->basePath('stubs')); |
|
| 23 | + }); |
|
| 24 | + } |
|
| 25 | + |
|
| 26 | + protected function registerMigrator() |
|
| 27 | + { |
|
| 28 | + $this->app->singleton('migrator', function ($app) { |
|
| 29 | + $repository = $app['migration.repository']; |
|
| 30 | + |
|
| 31 | + return new Migrator($repository, $app['db'], $app['files'], $app['events']); |
|
| 32 | + }); |
|
| 33 | + } |
|
| 34 | + |
|
| 35 | + protected function registerMigrateOrganise() |
|
| 36 | + { |
|
| 37 | + $this->app->singleton('command.migrate.organise', function ($app) { |
|
| 38 | + return new MigrateOrganise($app['files'], $app['migrator']); |
|
| 39 | + }); |
|
| 40 | + } |
|
| 41 | + |
|
| 42 | + protected function registerMigrateDisorganise() |
|
| 43 | + { |
|
| 44 | + $this->app->singleton('command.migrate.disorganise', function ($app) { |
|
| 45 | + return new MigrateDisorganise($app['files'], $app['migrator']); |
|
| 46 | + }); |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -18,14 +18,14 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected function registerCreator() |
| 20 | 20 | { |
| 21 | - $this->app->singleton('migration.creator', function ($app) { |
|
| 21 | + $this->app->singleton('migration.creator', function($app) { |
|
| 22 | 22 | return new MigrationCreator($app['files'], $app->basePath('stubs')); |
| 23 | 23 | }); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | protected function registerMigrator() |
| 27 | 27 | { |
| 28 | - $this->app->singleton('migrator', function ($app) { |
|
| 28 | + $this->app->singleton('migrator', function($app) { |
|
| 29 | 29 | $repository = $app['migration.repository']; |
| 30 | 30 | |
| 31 | 31 | return new Migrator($repository, $app['db'], $app['files'], $app['events']); |
@@ -34,14 +34,14 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | protected function registerMigrateOrganise() |
| 36 | 36 | { |
| 37 | - $this->app->singleton('command.migrate.organise', function ($app) { |
|
| 37 | + $this->app->singleton('command.migrate.organise', function($app) { |
|
| 38 | 38 | return new MigrateOrganise($app['files'], $app['migrator']); |
| 39 | 39 | }); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | protected function registerMigrateDisorganise() |
| 43 | 43 | { |
| 44 | - $this->app->singleton('command.migrate.disorganise', function ($app) { |
|
| 44 | + $this->app->singleton('command.migrate.disorganise', function($app) { |
|
| 45 | 45 | return new MigrateDisorganise($app['files'], $app['migrator']); |
| 46 | 46 | }); |
| 47 | 47 | } |