Add resources defined in config and a bundle of the site's own screens
This commit is contained in:
1 parent
37a29d9195
commit
3345797141
35 files changed
+905
-19
No files matched your search
@@ -25,7 +25,8 @@ class ManagerServiceProvider extends ServiceProvider
|
||||
$this->app->singleton(Modules\Posts\PostLabels::class);
|
||||
|
||||
$this->app->singleton(ModuleRegistry::class, fn ($app) => new ModuleRegistry(
|
||||
$app['config']->get('manager.available', []),
|
||||
// A config that was published before resources existed does not list their module.
|
||||
array_values(array_unique([...$app['config']->get('manager.available', []), Modules\Resources\ResourcesModule::class])),
|
||||
$app['config']->get('manager.modules', []),
|
||||
));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user