Skip to content

Commit

Permalink
Register new Seeder lexer and generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccreary committed May 18, 2020
1 parent 9af9a8e commit d2c021b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BlueprintServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ function ($app) {
$this->app->singleton(Blueprint::class, function ($app) {
$blueprint = new Blueprint();
$blueprint->registerLexer(new \Blueprint\Lexers\ModelLexer());
$blueprint->registerLexer(new \Blueprint\Lexers\SeederLexer());
$blueprint->registerLexer(new \Blueprint\Lexers\ControllerLexer(new \Blueprint\Lexers\StatementLexer()));

$blueprint->registerGenerator(new \Blueprint\Generators\MigrationGenerator($app['files']));
$blueprint->registerGenerator(new \Blueprint\Generators\ModelGenerator($app['files']));
$blueprint->registerGenerator(new \Blueprint\Generators\FactoryGenerator($app['files']));
$blueprint->registerGenerator(new \Blueprint\Generators\SeederGenerator($app['files']));

$blueprint->registerGenerator(new \Blueprint\Generators\ControllerGenerator($app['files']));
$blueprint->registerGenerator(new \Blueprint\Generators\Statements\EventGenerator($app['files']));
Expand Down

0 comments on commit d2c021b

Please sign in to comment.