Skip to content

Commit 3353179

Browse files
Merge branch '7.3' into 7.4
* 7.3: [SecurityBundle] Fix semantic configuration for singulars/plurals in XML [JsonPath] Make the component RFC compliant Fix `#[IsCsrfTokenValid]` to ensure `$tokenKey` is non-nullable
2 parents ad209b4 + 00a87cc commit 3353179

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">
@@ -724,6 +726,7 @@
724726
<xsd:choice maxOccurs="unbounded">
725727
<xsd:element name="resolve" type="http_resolve" minOccurs="0" maxOccurs="unbounded" />
726728
<xsd:element name="header" type="http_header" minOccurs="0" maxOccurs="unbounded" />
729+
<xsd:element name="var" type="http_var" minOccurs="0" maxOccurs="unbounded" />
727730
<xsd:element name="peer-fingerprint" type="fingerprint" minOccurs="0" maxOccurs="unbounded" />
728731
<xsd:element name="retry-failed" type="http_client_retry_failed" minOccurs="0" maxOccurs="1" />
729732
<xsd:element name="extra" type="xsd:anyType" minOccurs="0" maxOccurs="unbounded" />
@@ -818,6 +821,10 @@
818821
<xsd:attribute name="name" type="xsd:string" />
819822
</xsd:complexType>
820823

824+
<xsd:complexType name="http_var" mixed="true">
825+
<xsd:attribute name="name" type="xsd:string" />
826+
</xsd:complexType>
827+
821828
<xsd:complexType name="mailer">
822829
<xsd:sequence>
823830
<xsd:element name="transport" type="mailer_transport" minOccurs="0" maxOccurs="unbounded" />
@@ -875,6 +882,7 @@
875882
<xsd:complexType name="http_cache">
876883
<xsd:sequence>
877884
<xsd:element name="private-header" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
885+
<xsd:element name="skip-response-header" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
878886
</xsd:sequence>
879887

880888
<xsd:attribute name="enabled" type="xsd:boolean" />
@@ -1077,4 +1085,11 @@
10771085
<xsd:attribute name="enabled" type="xsd:boolean" />
10781086
</xsd:complexType>
10791087

1088+
<xsd:complexType name="secrets">
1089+
<xsd:attribute name="enabled" type="xsd:boolean" />
1090+
<xsd:attribute name="vault-directory" type="xsd:string" />
1091+
<xsd:attribute name="local-dotenv-file" type="xsd:string" />
1092+
<xsd:attribute name="decryption-env-var" type="xsd:string" />
1093+
</xsd:complexType>
1094+
10801095
</xsd:schema>

0 commit comments

Comments
 (0)