Skip to content

Commit 640a0e9

Browse files
committed
feat(normalization): support enabling specific processors via manager constructor
1 parent 7839581 commit 640a0e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Console/Commands/MigrationGeneratorCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,19 @@ protected function createMigrationsForWholeSchema(
113113
string $connectionName,
114114
?array $enabledNormalizer
115115
): void {
116+
$laravel = $this->getLaravel();
116117
/**
117118
* @var MigrationGenerator $generator
118119
*/
119-
$generator = $this->getLaravel()->make(
120+
$generator = $laravel->make(
120121
MigrationGeneratorInterface::class,
121122
['connectionName' => $connectionName]
122123
);
123124

124125
/**
125126
* @var SchemaNormalizationManager $normalizer
126127
*/
127-
$normalizer = $this->getLaravel()->make(
128+
$normalizer = $laravel->make(
128129
SchemaNormalizationManagerInterface::class,
129130
['enabled' => $enabledNormalizer]
130131
);

0 commit comments

Comments
 (0)