Skip to content

Commit 99aa4fa

Browse files
committed
Load all generators
1 parent 0aaea29 commit 99aa4fa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/BlueprintCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,18 @@ public function handle()
5454
$blueprint = new Blueprint();
5555

5656
$blueprint->registerLexer(new \Blueprint\Lexers\ModelLexer());
57+
$blueprint->registerLexer(new \Blueprint\Lexers\ControllerLexer(new \Blueprint\Lexers\StatementLexer()));
5758

5859
$blueprint->registerGenerator(new \Blueprint\Generators\MigrationGenerator($this->files));
5960
$blueprint->registerGenerator(new \Blueprint\Generators\ModelGenerator($this->files));
6061
$blueprint->registerGenerator(new \Blueprint\Generators\FactoryGenerator($this->files));
6162

62-
// TODO: load additional generators
63+
$blueprint->registerGenerator(new \Blueprint\Generators\ControllerGenerator($this->files));
64+
$blueprint->registerGenerator(new \Blueprint\Generators\Statements\EventGenerator($this->files));
65+
$blueprint->registerGenerator(new \Blueprint\Generators\Statements\FormRequestGenerator($this->files));
66+
$blueprint->registerGenerator(new \Blueprint\Generators\Statements\JobGenerator($this->files));
67+
$blueprint->registerGenerator(new \Blueprint\Generators\Statements\MailGenerator($this->files));
68+
$blueprint->registerGenerator(new \Blueprint\Generators\Statements\ViewGenerator($this->files));
6369

6470
$tokens = $blueprint->parse($contents);
6571
$registry = $blueprint->analyze($tokens);

0 commit comments

Comments
 (0)