feat: add secure module marketplace runtime (#745)

This commit is contained in:
Darko Gjorgjijoski
2026-08-05 03:49:42 +02:00
committed by GitHub
parent f322c2b74d
commit 8579e4f85f
79 changed files with 2084 additions and 1762 deletions
+9 -5
View File
@@ -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',
/*
|--------------------------------------------------------------------------