mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-05 23:01:07 +00:00
feat: add secure module marketplace runtime (#745)
This commit is contained in:
+9
-5
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Services\Marketplace\DatabaseActivator;
|
||||
use Nwidart\Modules\Activators\FileActivator;
|
||||
use Nwidart\Modules\Providers\ConsoleServiceProvider;
|
||||
|
||||
@@ -213,12 +214,15 @@ return [
|
||||
| Activators
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| InvoiceShelf-specific override: keep the statuses file under storage/app/
|
||||
| so existing installations don't lose track of which modules are enabled
|
||||
| when this config is republished. Upstream v13 defaults to base_path() but
|
||||
| the v3 ModuleInstaller already writes here.
|
||||
| Runtime activation uses the database activator above. The file activator
|
||||
| remains only as a backwards-compatible fallback before the database is
|
||||
| available during application bootstrap. Keep its legacy status file under
|
||||
| storage/app rather than the application root.
|
||||
*/
|
||||
'activators' => [
|
||||
'database' => [
|
||||
'class' => DatabaseActivator::class,
|
||||
],
|
||||
'file' => [
|
||||
'class' => FileActivator::class,
|
||||
'statuses-file' => base_path('storage/app/modules_statuses.json'),
|
||||
@@ -227,7 +231,7 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
'activator' => 'file',
|
||||
'activator' => 'database',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user