Skip to content

Commit 5908bc4

Browse files
committed
[Icons] Fix aliases and default_attributes config types for config/reference.php
1 parent 4800dec commit 5908bc4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Icons/src/DependencyInjection/UXIconsExtension.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public function getConfigTreeBuilder(): TreeBuilder
6363
->info('Override default icon attributes for icons in this set.')
6464
->example(['class' => 'icon icon-acme', 'fill' => 'none'])
6565
->normalizeKeys(false)
66-
->variablePrototype()
66+
->useAttributeAsKey('key')
67+
->scalarPrototype()
68+
->cannotBeEmpty()
6769
->end()
6870
->end()
6971
->end()
@@ -80,7 +82,8 @@ public function getConfigTreeBuilder(): TreeBuilder
8082
'privacy' => 'bi:cookie',
8183
])
8284
->normalizeKeys(false)
83-
->scalarPrototype()
85+
->useAttributeAsKey('key')
86+
->stringPrototype()
8487
->cannotBeEmpty()
8588
->end()
8689
->end()

0 commit comments

Comments
 (0)