From d53fcfddd26a7798247725e2a8c9f6055d8a82e5 Mon Sep 17 00:00:00 2001 From: BartB Date: Wed, 10 Jan 2018 12:07:04 +0100 Subject: [PATCH 1/2] use attribute as key in assets type cs --- AssetsBundle/DependencyInjection/Configuration.php | 1 + 1 file changed, 1 insertion(+) diff --git a/AssetsBundle/DependencyInjection/Configuration.php b/AssetsBundle/DependencyInjection/Configuration.php index 74a721c..5854843 100644 --- a/AssetsBundle/DependencyInjection/Configuration.php +++ b/AssetsBundle/DependencyInjection/Configuration.php @@ -35,6 +35,7 @@ public function addTypes(NodeBuilder $node) // @formatter:off /** @noinspection PhpUndefinedMethodInspection */ $node->arrayNode('types') + ->useAttributeAsKey('assets_type') ->prototype('array') ->addDefaultsIfNotSet() ->children() From 30c5479025630f29c9727294e60e0d8b221e7496 Mon Sep 17 00:00:00 2001 From: BartB Date: Thu, 11 Jan 2018 10:39:20 +0100 Subject: [PATCH 2/2] change name to type --- AssetsBundle/DependencyInjection/Configuration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AssetsBundle/DependencyInjection/Configuration.php b/AssetsBundle/DependencyInjection/Configuration.php index 5854843..2f0ac4d 100644 --- a/AssetsBundle/DependencyInjection/Configuration.php +++ b/AssetsBundle/DependencyInjection/Configuration.php @@ -35,7 +35,7 @@ public function addTypes(NodeBuilder $node) // @formatter:off /** @noinspection PhpUndefinedMethodInspection */ $node->arrayNode('types') - ->useAttributeAsKey('assets_type') + ->useAttributeAsKey('type') ->prototype('array') ->addDefaultsIfNotSet() ->children()