File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Native \Laravel ;
4
4
5
+ use Illuminate \Console \Application as Artisan ;
5
6
use Illuminate \Support \Arr ;
6
7
use Native \Laravel \Commands \LoadPHPConfigurationCommand ;
7
8
use Native \Laravel \Commands \LoadStartupConfigurationCommand ;
@@ -19,9 +20,6 @@ public function configurePackage(Package $package): void
19
20
->name ('nativephp ' )
20
21
->hasCommands ([
21
22
MigrateCommand::class,
22
- MinifyApplicationCommand::class,
23
- LoadStartupConfigurationCommand::class,
24
- LoadPHPConfigurationCommand::class,
25
23
])
26
24
->hasConfigFile ()
27
25
->hasRoute ('api ' )
@@ -37,6 +35,14 @@ public function packageRegistered()
37
35
});
38
36
39
37
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
+
40
46
$ this ->configureApp ();
41
47
}
42
48
}
You can’t perform that action at this time.
0 commit comments