mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-01 21:00:58 +00:00
feat(modules): add safe module uninstall lifecycle (#746)
* fix(modules): recover from missing runtime files * feat(modules): add safe uninstall lifecycle * build(deps): lock module SDK 3.2.0 * test(modules): expect SDK 3.2 scaffold constraint
This commit is contained in:
+4
-1
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
use App\Console\Commands\UninstallModuleCommand;
|
||||
use App\Services\Marketplace\DatabaseActivator;
|
||||
use Nwidart\Modules\Activators\FileActivator;
|
||||
use Nwidart\Modules\Commands\Actions\ModuleDeleteCommand;
|
||||
use Nwidart\Modules\Providers\ConsoleServiceProvider;
|
||||
|
||||
return [
|
||||
@@ -169,8 +171,9 @@ return [
|
||||
|
|
||||
*/
|
||||
'commands' => ConsoleServiceProvider::defaultCommands()
|
||||
->reject(fn (string $command): bool => $command === ModuleDeleteCommand::class)
|
||||
->merge([
|
||||
// InvoiceShelf-specific module commands go here
|
||||
UninstallModuleCommand::class,
|
||||
])->toArray(),
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user