Skip to content

Commit 92c4a4c

Browse files
[FramewokrkBundle] Fix declaring fiel-attr tags in xml config files
1 parent 905d138 commit 92c4a4c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ private function addFormSection(ArrayNodeDefinition $rootNode, callable $enableI
252252
->arrayNode('field_attr')
253253
->performNoDeepMerging()
254254
->normalizeKeys(false)
255+
->useAttributeAsKey('name')
255256
->scalarPrototype()->end()
256257
->defaultValue(['data-controller' => 'csrf-protection'])
257258
->end()

src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<xsd:attribute name="field-name" type="xsd:string" />
8080
</xsd:complexType>
8181

82-
<xsd:complexType name="field_attr">
82+
<xsd:complexType name="field_attr" mixed="true">
8383
<xsd:attribute name="name" type="xsd:string" use="required"/>
8484
</xsd:complexType>
8585

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy