| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php namespace Xethron\MigrationsGenerator; |
||
| 19 | public function register() |
||
| 20 | { |
||
| 21 | $this->app->singleton('migration.generate', |
||
| 22 | function($app) { |
||
| 23 | return new MigrateGenerateCommand( |
||
| 24 | $app->make('Way\Generators\Generator'), |
||
| 25 | $app->make('Way\Generators\Filesystem\Filesystem'), |
||
| 26 | $app->make('Way\Generators\Compilers\TemplateCompiler'), |
||
| 27 | $app->make('migration.repository'), |
||
| 28 | $app->make('config') |
||
| 29 | ); |
||
| 30 | }); |
||
| 31 | |||
| 32 | $this->commands('migration.generate'); |
||
| 33 | |||
| 34 | // Bind the Repository Interface to $app['migrations.repository'] |
||
| 35 | $this->app->bind('Illuminate\Database\Migrations\MigrationRepositoryInterface', function($app) { |
||
| 36 | return $app['migration.repository']; |
||
| 37 | }); |
||
| 38 | } |
||
| 39 | |||
| 60 |