44
55use Illuminate \Console \Command ;
66use Illuminate \Console \ConfirmableTrait ;
7- use Illuminate \Database \Console \Migrations \MigrateMakeCommand ;
8- use Illuminate \Database \Migrations \MigrationCreator ;
97use Illuminate \Database \Migrations \Migrator ;
10- use Illuminate \Support \Composer ;
118use Illuminate \Support \Facades \Config ;
129use N3XT0R \MigrationGenerator \Service \Generator \DTO \MigrationTimingDto ;
1310use N3XT0R \MigrationGenerator \Service \Generator \MigrationGenerator ;
1613use N3XT0R \MigrationGenerator \Service \Generator \Normalization \SchemaNormalizationManagerInterface ;
1714use N3XT0R \MigrationGenerator \Service \Parser \SchemaParserInterface ;
1815
19- class MigrationGeneratorCommand extends MigrateMakeCommand
16+ class MigrationGeneratorCommand extends Command
2017{
2118
2219 use ConfirmableTrait;
@@ -43,18 +40,11 @@ class MigrationGeneratorCommand extends MigrateMakeCommand
4340 */
4441 protected $ migrator ;
4542
46- /**
47- * MigrationGeneratorCommand constructor.
48- * @param MigrationCreator $creator
49- * @param Composer $composer
50- * @param Migrator|null $migrator
51- * @throws \Illuminate\Contracts\Container\BindingResolutionException
52- */
53- public function __construct (MigrationCreator $ creator , Composer $ composer , Migrator $ migrator = null )
43+ public function __construct ()
5444 {
5545 $ this ->extendSignatureWithNormalizers ();
56- parent ::__construct ($ creator , $ composer );
57- $ this ->setMigrator ($ migrator ?? app ()->make ('migrator ' ));
46+ parent ::__construct ();
47+ $ this ->setMigrator (app ()->make ('migrator ' ));
5848 }
5949
6050 public function setMigrator (Migrator $ migrator ): void
0 commit comments