Skip to content

Commit d69f90d

Browse files
bartlomiejbetalbarulski
authored andcommitted
use attribute as key in assets type (#1)
* use attribute as key in assets type cs * change name to type
1 parent 2f42c37 commit d69f90d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AssetsBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function addTypes(NodeBuilder $node)
3535
// @formatter:off
3636
/** @noinspection PhpUndefinedMethodInspection */
3737
$node->arrayNode('types')
38+
->useAttributeAsKey('type')
3839
->prototype('array')
3940
->addDefaultsIfNotSet()
4041
->children()

0 commit comments

Comments
 (0)