Skip to content

Commit

Permalink
Simplify override configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Nikolaev committed Jan 14, 2020
1 parent 73446ac commit 199b95a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,5 @@ $ /usr/bin/env php bin/console darvin:utils:translations:title-case <pathname>
- Move macros template to utils lib.

- Move translations to utils lib.

7.3.1: Simplify override configuration.
9 changes: 7 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,13 @@ private function buildOverrideNode(): ArrayNodeDefinition
->prototype('array')->useAttributeAsKey('subject')
->prototype('array')
->children()
->arrayNode('entities')->prototype('scalar')->cannotBeEmpty()->end()->end()
->arrayNode('templates')->prototype('scalar')->cannotBeEmpty();
->arrayNode('entities')
->prototype('scalar')->cannotBeEmpty()->end()
->beforeNormalization()->castToArray()->end()
->end()
->arrayNode('templates')
->prototype('scalar')->cannotBeEmpty()->end()
->beforeNormalization()->castToArray();

return $root;
}
Expand Down

0 comments on commit 199b95a

Please sign in to comment.