File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace Native \Laravel ;
44
5+ use Illuminate \Console \Application as Artisan ;
56use Illuminate \Support \Arr ;
67use Native \Laravel \Commands \LoadPHPConfigurationCommand ;
78use Native \Laravel \Commands \LoadStartupConfigurationCommand ;
@@ -19,9 +20,6 @@ public function configurePackage(Package $package): void
1920 ->name ('nativephp ' )
2021 ->hasCommands ([
2122 MigrateCommand::class,
22- MinifyApplicationCommand::class,
23- LoadStartupConfigurationCommand::class,
24- LoadPHPConfigurationCommand::class,
2523 ])
2624 ->hasConfigFile ()
2725 ->hasRoute ('api ' )
@@ -37,6 +35,14 @@ public function packageRegistered()
3735 });
3836
3937 if (config ('nativephp-internal.running ' )) {
38+ Artisan::starting (function ($ artisan ) {
39+ $ artisan ->resolveCommands ([
40+ MinifyApplicationCommand::class,
41+ LoadStartupConfigurationCommand::class,
42+ LoadPHPConfigurationCommand::class,
43+ ]);
44+ });
45+
4046 $ this ->configureApp ();
4147 }
4248 }
You can’t perform that action at this time.
0 commit comments