Hotfix: Overriding Lunar Install command for non-interactive inputs

This commit is contained in:
2026-07-10 12:31:59 +03:00
parent 1d2a90059d
commit 2767a4bb69
2 changed files with 248 additions and 0 deletions
+4
View File
@@ -8,6 +8,7 @@ use Modules\Core\Command\AnonymizeCommand;
use Modules\Core\Command\ExportCleanupCommand;
use Modules\Core\Command\ExportCommand;
use Modules\Core\Command\ImportCommand;
use Modules\Core\Command\InstallLunarCommand;
use Modules\Core\Command\MigrateImportCommand;
class CoreServiceProvider extends ServiceProvider
@@ -34,6 +35,9 @@ class CoreServiceProvider extends ServiceProvider
if ($this->app->runningInConsole()) {
$this->commands([AnonymizeCommand::class, ExportCommand::class, ExportCleanupCommand::class, ImportCommand::class, MigrateImportCommand::class]);
//Overriding lunar:install
$this->app->booted(fn () => $this->commands([InstallLunarCommand::class]));
}
}
}