[FrameworkBundle] fix "samesite" in XSD
This commit is contained in:
parent
f350f532b7
commit
abac71b0a4
@ -491,7 +491,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->scalarNode('cookie_domain')->end()
|
->scalarNode('cookie_domain')->end()
|
||||||
->booleanNode('cookie_secure')->end()
|
->booleanNode('cookie_secure')->end()
|
||||||
->booleanNode('cookie_httponly')->defaultTrue()->end()
|
->booleanNode('cookie_httponly')->defaultTrue()->end()
|
||||||
->enumNode('cookie_samesite')->values([null, Cookie::SAMESITE_LAX, Cookie::SAMESITE_STRICT])->defaultNull()->end()
|
->enumNode('cookie_samesite')->values([null, Cookie::SAMESITE_LAX, Cookie::SAMESITE_STRICT, Cookie::SAMESITE_NONE])->defaultNull()->end()
|
||||||
->booleanNode('use_cookies')->end()
|
->booleanNode('use_cookies')->end()
|
||||||
->scalarNode('gc_divisor')->end()
|
->scalarNode('gc_divisor')->end()
|
||||||
->scalarNode('gc_probability')->defaultValue(1)->end()
|
->scalarNode('gc_probability')->defaultValue(1)->end()
|
||||||
|
@ -113,6 +113,7 @@
|
|||||||
<xsd:attribute name="cookie-domain" type="xsd:string" />
|
<xsd:attribute name="cookie-domain" type="xsd:string" />
|
||||||
<xsd:attribute name="cookie-secure" type="xsd:boolean" />
|
<xsd:attribute name="cookie-secure" type="xsd:boolean" />
|
||||||
<xsd:attribute name="cookie-httponly" type="xsd:boolean" />
|
<xsd:attribute name="cookie-httponly" type="xsd:boolean" />
|
||||||
|
<xsd:attribute name="cookie-samesite" type="cookie_samesite" />
|
||||||
<xsd:attribute name="use-cookies" type="xsd:boolean" />
|
<xsd:attribute name="use-cookies" type="xsd:boolean" />
|
||||||
<xsd:attribute name="cache-limiter" type="xsd:string" />
|
<xsd:attribute name="cache-limiter" type="xsd:string" />
|
||||||
<xsd:attribute name="gc-maxlifetime" type="xsd:string" />
|
<xsd:attribute name="gc-maxlifetime" type="xsd:string" />
|
||||||
@ -306,6 +307,15 @@
|
|||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
|
|
||||||
|
<xsd:simpleType name="cookie_samesite">
|
||||||
|
<xsd:restriction base="xsd:string">
|
||||||
|
<xsd:enumeration value="" />
|
||||||
|
<xsd:enumeration value="none" />
|
||||||
|
<xsd:enumeration value="lax" />
|
||||||
|
<xsd:enumeration value="strict" />
|
||||||
|
</xsd:restriction>
|
||||||
|
</xsd:simpleType>
|
||||||
|
|
||||||
<xsd:simpleType name="workflow_type">
|
<xsd:simpleType name="workflow_type">
|
||||||
<xsd:restriction base="xsd:string">
|
<xsd:restriction base="xsd:string">
|
||||||
<xsd:enumeration value="state_machine" />
|
<xsd:enumeration value="state_machine" />
|
||||||
|
Reference in New Issue
Block a user