Skip to content

Commit

Permalink
Merge branch '5.0' into 5.1
Browse files Browse the repository at this point in the history
* 5.0:
  [PagePartBundle] Keep yaml array keys when merging multiple configs
  fixed broken composer json
  • Loading branch information
Kristof Jochmans committed Jan 14, 2019
2 parents e86e6dd + 217db40 commit b260ec7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Kunstmaan/GeneratorBundle/composer.json
Expand Up @@ -20,7 +20,7 @@
"sensio/generator-bundle": "~2.5|~3.0",
"fzaninotto/faker": "~1.4.0",
"kunstmaan/utilities-bundle": "~3.2",
"twig/twig": "^1.12|^2.0",
"twig/twig": "^1.12|^2.0"
},
"suggest": {
"kunstmaan/admin-bundle": "~3.2",
Expand Down
Expand Up @@ -27,7 +27,7 @@ public function getConfigTreeBuilder()
->end();

/** @var ArrayNodeDefinition $pageparts */
$pageparts = $root->children()->arrayNode('pageparts')->prototype('array');
$pageparts = $root->children()->arrayNode('pageparts')->useAttributeAsKey('index')->prototype('array');
$pageparts->children()->scalarNode('name')->isRequired();
$pageparts->children()->scalarNode('context')->isRequired();
$pageparts->children()->scalarNode('extends');
Expand All @@ -43,7 +43,7 @@ public function getConfigTreeBuilder()
// *************************************************************************************************************

/** @var ArrayNodeDefinition $pagetemplates */
$pagetemplates = $root->children()->arrayNode('pagetemplates')->defaultValue([])->prototype('array');
$pagetemplates = $root->children()->arrayNode('pagetemplates')->useAttributeAsKey('index')->defaultValue([])->prototype('array');

$pagetemplates->children()->scalarNode('template')->isRequired();
$pagetemplates->children()->scalarNode('name')->isRequired();
Expand Down

0 comments on commit b260ec7

Please sign in to comment.