Skip to content

Commit

Permalink
fix config load priority to allow config overwrites (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Oct 23, 2023
1 parent 4c6e3db commit b5c413b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions UPGRADE.md
@@ -1,5 +1,8 @@
# Upgrade Notes

## 5.0.1
- Fix config load priority to allow config overwrites

## Migrating from Version 4.x to Version 5.0.0

### New Features
Expand Down
4 changes: 0 additions & 4 deletions config/config.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions config/pimcore/config.yaml
@@ -1,3 +1,8 @@
imports:
- { resource: ../data_attributes.yaml }
- { resource: ../image_thumbnails.yaml }
- { resource: ../document_editables.yaml }

doctrine_migrations:
migrations_paths:
'ToolboxBundle\Migrations': '@ToolboxBundle/src/Migrations'
3 changes: 1 addition & 2 deletions src/DependencyInjection/ToolboxExtension.php
Expand Up @@ -24,7 +24,6 @@ public function prepend(ContainerBuilder $container): void
}

$coreLoader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../../config'));
$coreLoader->load('config.yaml');

$loaded = [];

Expand Down Expand Up @@ -186,7 +185,7 @@ private function parseContextConfigs(array $configs): array
}
}

//get context data
// get context data
foreach ($configs as $config) {

if (!isset($config['context'])) {
Expand Down
3 changes: 2 additions & 1 deletion tests/FunctionalDefault/Controller/SnippetControllerCest.php
Expand Up @@ -53,7 +53,8 @@ public function testSnippetWithDefaultTeaserController(FunctionalTester $I)
'type' => 'input',
],
'text' => [
'type' => 'wysiwyg',
'type' => 'wysiwyg',
'dataFromResource' => '',
],
];

Expand Down

0 comments on commit b5c413b

Please sign in to comment.