Skip to content

Commit 8c3369a

Browse files
committed
feat(normalization): support enabling specific processors via manager constructor
1 parent f2bcba7 commit 8c3369a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Console/Commands/MigrationGeneratorCommand.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,7 @@ class MigrationGeneratorCommand extends MigrateMakeCommand
5353
public function __construct(MigrationCreator $creator, Composer $composer, Migrator $migrator = null)
5454
{
5555
parent::__construct($creator, $composer);
56-
if (null === $migrator) {
57-
/**
58-
* @var Migrator $migrator
59-
*/
60-
$migrator = app()->make('migrator');
61-
}
62-
$this->setMigrator($migrator);
56+
$this->setMigrator($migrator ?? app()->make('migrator'));
6357
$this->extendSignatureWithNormalizers();
6458
}
6559

0 commit comments

Comments
 (0)