Skip to content

Commit

Permalink
feat(package): add package mapping for admin config array
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Jun 13, 2022
1 parent dbe967c commit 31cbb8c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ protected function registerAdminServices(Container $container)
// The `admin.json` file is not part of regular config
if (!empty($appConfig['admin_config'])) {
$appAdminConfigs = (array)$appConfig['admin_config'];
$container['package/map']->map($appAdminConfigs);
array_push($extraConfigs, ...$appAdminConfigs);
}

Expand Down Expand Up @@ -195,7 +196,7 @@ protected function registerMetadataExtensions(Container $container)
/**
* @return MetadataConfig
*/
$container['metadata/config'] = function () {
$container['metadata/config'] = function (Container $container) {
$settings = $container['admin/config']['metadata'];
$metaConfig = new MetadataConfig($settings);

Expand Down

0 comments on commit 31cbb8c

Please sign in to comment.