Skip to content

Commit 00a87cc

Browse files
[SecurityBundle] Fix semantic configuration for singulars/plurals in XML
1 parent 1ddc6e0 commit 00a87cc

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public function getConfigTreeBuilder(): TreeBuilder
8686
})
8787
->end()
8888
->fixXmlConfig('enabled_locale')
89+
->fixXmlConfig('trusted_header')
8990
->children()
9091
->scalarNode('secret')->end()
9192
->booleanNode('http_method_override')
@@ -124,7 +125,6 @@ public function getConfigTreeBuilder(): TreeBuilder
124125
->defaultValue(['%env(default::SYMFONY_TRUSTED_PROXIES)%'])
125126
->end()
126127
->arrayNode('trusted_headers')
127-
->fixXmlConfig('trusted_header')
128128
->performNoDeepMerging()
129129
->beforeNormalization()->ifString()->then(static fn ($v) => $v ? [$v] : [])->end()
130130
->prototype('scalar')->end()
@@ -276,6 +276,7 @@ private function addHttpCacheSection(ArrayNodeDefinition $rootNode): void
276276
->info('HTTP cache configuration')
277277
->canBeEnabled()
278278
->fixXmlConfig('private_header')
279+
->fixXmlConfig('skip_response_header')
279280
->children()
280281
->booleanNode('debug')->defaultValue('%kernel.debug%')->end()
281282
->enumNode('trace_level')

Resources/config/schema/symfony-1.0.xsd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<xsd:element name="webhook" type="webhook" minOccurs="0" maxOccurs="1" />
4848
<xsd:element name="remote-event" type="remote-event" minOccurs="0" maxOccurs="1" />
4949
<xsd:element name="json-streamer" type="json-streamer" minOccurs="0" maxOccurs="1" />
50+
<xsd:element name="secrets" type="secrets" minOccurs="0" maxOccurs="1" />
5051
</xsd:choice>
5152

5253
<xsd:attribute name="http-method-override" type="xsd:boolean" />
@@ -62,6 +63,7 @@
6263
<xsd:attribute name="trusted-hosts" type="xsd:string" />
6364
<xsd:attribute name="trusted-proxies" type="xsd:string" />
6465
<xsd:attribute name="trusted-headers" type="xsd:string" />
66+
<xsd:attribute name="disallow-search-engine-index" type="xsd:boolean" />
6567
</xsd:complexType>
6668

6769
<xsd:complexType name="form">
@@ -713,6 +715,7 @@
713715
<xsd:choice maxOccurs="unbounded">
714716
<xsd:element name="resolve" type="http_resolve" minOccurs="0" maxOccurs="unbounded" />
715717
<xsd:element name="header" type="http_header" minOccurs="0" maxOccurs="unbounded" />
718+
<xsd:element name="var" type="http_var" minOccurs="0" maxOccurs="unbounded" />
716719
<xsd:element name="peer-fingerprint" type="fingerprint" minOccurs="0" maxOccurs="unbounded" />
717720
<xsd:element name="retry-failed" type="http_client_retry_failed" minOccurs="0" maxOccurs="1" />
718721
<xsd:element name="extra" type="xsd:anyType" minOccurs="0" maxOccurs="unbounded" />
@@ -807,6 +810,10 @@
807810
<xsd:attribute name="name" type="xsd:string" />
808811
</xsd:complexType>
809812

813+
<xsd:complexType name="http_var" mixed="true">
814+
<xsd:attribute name="name" type="xsd:string" />
815+
</xsd:complexType>
816+
810817
<xsd:complexType name="mailer">
811818
<xsd:sequence>
812819
<xsd:element name="transport" type="mailer_transport" minOccurs="0" maxOccurs="unbounded" />
@@ -864,6 +871,7 @@
864871
<xsd:complexType name="http_cache">
865872
<xsd:sequence>
866873
<xsd:element name="private-header" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
874+
<xsd:element name="skip-response-header" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
867875
</xsd:sequence>
868876

869877
<xsd:attribute name="enabled" type="xsd:boolean" />
@@ -1066,4 +1074,11 @@
10661074
<xsd:attribute name="enabled" type="xsd:boolean" />
10671075
</xsd:complexType>
10681076

1077+
<xsd:complexType name="secrets">
1078+
<xsd:attribute name="enabled" type="xsd:boolean" />
1079+
<xsd:attribute name="vault-directory" type="xsd:string" />
1080+
<xsd:attribute name="local-dotenv-file" type="xsd:string" />
1081+
<xsd:attribute name="decryption-env-var" type="xsd:string" />
1082+
</xsd:complexType>
1083+
10691084
</xsd:schema>

0 commit comments

Comments
 (0)