N°6934 - Symfony 6.4 - upgrade Symfony bundles to 6.4 (#580)

* Update Symfony lib to version ~6.4.0
* Update code missing return type
* Add an iTop general configuration entry to store application secret (Symfony mandatory parameter)
* Use dependency injection in ExceptionListener & UserProvider classes
This commit is contained in:
bdalsass
2023-12-05 13:56:56 +01:00
committed by GitHub
parent 863ab4560c
commit 27ce51ab07
1392 changed files with 44869 additions and 27799 deletions

View File

@@ -10,6 +10,7 @@
<xsd:complexType name="config">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="assets" type="assets" minOccurs="0" maxOccurs="1" />
<xsd:element name="asset-mapper" type="asset_mapper" minOccurs="0" maxOccurs="1" />
<xsd:element name="form" type="form" minOccurs="0" maxOccurs="1" />
<xsd:element name="csrf-protection" type="csrf_protection" minOccurs="0" maxOccurs="1" />
<xsd:element name="esi" type="esi" minOccurs="0" maxOccurs="1" />
@@ -24,6 +25,7 @@
<xsd:element name="validation" type="validation" minOccurs="0" maxOccurs="1" />
<xsd:element name="annotations" type="annotations" minOccurs="0" maxOccurs="1" />
<xsd:element name="property-access" type="property_access" minOccurs="0" maxOccurs="1" />
<xsd:element name="scheduler" type="scheduler" minOccurs="0" maxOccurs="1" />
<xsd:element name="serializer" type="serializer" minOccurs="0" maxOccurs="1" />
<xsd:element name="property-info" type="property_info" minOccurs="0" maxOccurs="1" />
<xsd:element name="cache" type="cache" minOccurs="0" maxOccurs="1" />
@@ -32,6 +34,7 @@
<xsd:element name="exceptions" type="exceptions" minOccurs="0" maxOccurs="1" />
<xsd:element name="exception" type="new-exception" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="lock" type="lock" minOccurs="0" maxOccurs="1" />
<xsd:element name="semaphore" type="semaphore" minOccurs="0" maxOccurs="1" />
<xsd:element name="messenger" type="messenger" minOccurs="0" maxOccurs="1" />
<xsd:element name="http-client" type="http_client" minOccurs="0" maxOccurs="1" />
<xsd:element name="mailer" type="mailer" minOccurs="0" maxOccurs="1" />
@@ -39,10 +42,15 @@
<xsd:element name="rate-limiter" type="rate_limiter" minOccurs="0" maxOccurs="1" />
<xsd:element name="uid" type="uid" minOccurs="0" maxOccurs="1" />
<xsd:element name="notifier" type="notifier" minOccurs="0" maxOccurs="1" />
<xsd:element name="html-sanitizer" type="html-sanitizer" minOccurs="0" maxOccurs="1" />
<xsd:element name="enabled-locale" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="webhook" type="webhook" minOccurs="0" maxOccurs="1" />
<xsd:element name="remote-event" type="remote-event" minOccurs="0" maxOccurs="1" />
</xsd:choice>
<xsd:attribute name="http-method-override" type="xsd:boolean" />
<xsd:attribute name="handle-all-throwables" type="xsd:boolean" />
<xsd:attribute name="trust-x-sendfile-type-header" type="xsd:boolean" />
<xsd:attribute name="ide" type="xsd:string" />
<xsd:attribute name="secret" type="xsd:string" />
<xsd:attribute name="default-locale" type="xsd:string" />
@@ -101,6 +109,7 @@
<xsd:attribute name="username" type="xsd:string" />
<xsd:attribute name="password" type="xsd:string" />
<xsd:attribute name="lifetime" type="xsd:string" />
<xsd:attribute name="collect-serializer-data" type="xsd:boolean" />
</xsd:complexType>
<xsd:complexType name="router">
@@ -111,6 +120,7 @@
<xsd:attribute name="strict-requirements" type="xsd:string" />
<xsd:attribute name="utf8" type="xsd:boolean" />
<xsd:attribute name="default-uri" type="xsd:string" />
<xsd:attribute name="cache-dir" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="session">
@@ -178,11 +188,48 @@
<xsd:attribute name="strict-mode" type="xsd:boolean" />
</xsd:complexType>
<xsd:complexType name="asset_mapper">
<xsd:sequence>
<xsd:element name="path" type="asset_mapper_path" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="excluded-pattern" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="extension" type="asset_mapper_extension" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="importmap-script-attribute" type="asset_mapper_attribute" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="enabled" type="xsd:boolean" />
<xsd:attribute name="exclude-dotfiles" type="xsd:boolean" />
<xsd:attribute name="server" type="xsd:boolean" />
<xsd:attribute name="public-prefix" type="xsd:string" />
<xsd:attribute name="missing-import-mode" type="missing-import-mode" />
<xsd:attribute name="importmap-path" type="xsd:string" />
<xsd:attribute name="importmap-polyfill" type="xsd:string" />
<xsd:attribute name="vendor-dir" type="xsd:string" />
<xsd:attribute name="provider" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="asset_mapper_path" mixed="true">
<xsd:attribute name="namespace" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="asset_mapper_extension" mixed="true">
<xsd:attribute name="extension" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="asset_mapper_attribute" mixed="true">
<xsd:attribute name="key" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:simpleType name="missing-import-mode">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="strict" />
<xsd:enumeration value="warn" />
<xsd:enumeration value="ignore" />
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="translator">
<xsd:sequence>
<xsd:element name="fallback" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="path" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="enabled-locale" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="pseudo-localization" type="pseudo_localization" minOccurs="0" maxOccurs="1" />
<xsd:element name="provider" type="translation_provider" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
@@ -191,6 +238,7 @@
<xsd:attribute name="logging" type="xsd:boolean" />
<xsd:attribute name="formatter" type="xsd:string" />
<xsd:attribute name="cache-dir" type="xsd:string" />
<xsd:attribute name="default-path" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="pseudo_localization">
@@ -223,6 +271,7 @@
<xsd:attribute name="enabled" type="xsd:boolean" />
<xsd:attribute name="cache" type="xsd:string" />
<xsd:attribute name="enable-annotations" type="xsd:boolean" />
<xsd:attribute name="enable-attributes" type="xsd:boolean" />
<xsd:attribute name="static-method" type="xsd:boolean" />
<xsd:attribute name="translation-domain" type="xsd:string" />
<xsd:attribute name="strict-email" type="xsd:boolean" />
@@ -265,6 +314,10 @@
<xsd:attribute name="throw-exception-on-invalid-property-path" type="xsd:boolean" />
</xsd:complexType>
<xsd:complexType name="scheduler">
<xsd:attribute name="enabled" type="xsd:boolean" />
</xsd:complexType>
<xsd:complexType name="serializer">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="mapping" type="file_mapping" />
@@ -272,6 +325,7 @@
</xsd:choice>
<xsd:attribute name="enabled" type="xsd:boolean" />
<xsd:attribute name="enable-annotations" type="xsd:boolean" />
<xsd:attribute name="enable-attributes" type="xsd:boolean" />
<xsd:attribute name="name-converter" type="xsd:string" />
<xsd:attribute name="circular-reference-handler" type="xsd:string" />
<xsd:attribute name="max-depth-handler" type="xsd:string" />
@@ -301,6 +355,7 @@
<xsd:attribute name="default-redis-provider" type="xsd:string" />
<xsd:attribute name="default-memcached-provider" type="xsd:string" />
<xsd:attribute name="default-pdo-provider" type="xsd:string" />
<xsd:attribute name="default-doctrine-dbal-provider" type="xsd:string" />
<xsd:attribute name="prefix-seed" type="xsd:string" />
</xsd:complexType>
@@ -398,8 +453,6 @@
<xsd:simpleType name="marking_store_type">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="multiple_state" />
<xsd:enumeration value="single_state" />
<xsd:enumeration value="method" />
</xsd:restriction>
</xsd:simpleType>
@@ -439,7 +492,7 @@
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="default_middleware">
<xsd:simpleType name="default_middleware_attr">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="true" />
<xsd:enumeration value="false" />
@@ -449,6 +502,12 @@
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="default_middleware_elem">
<xsd:attribute name="enabled" type="xsd:boolean" />
<xsd:attribute name="allow_no_handlers" type="xsd:boolean" />
<xsd:attribute name="allow_no_senders" type="xsd:boolean" />
</xsd:complexType>
<xsd:simpleType name="cookie_secure">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="true" />
@@ -505,6 +564,21 @@
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="semaphore">
<xsd:sequence>
<xsd:element name="resource" type="semaphore_resource" minOccurs="1" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="enabled" type="xsd:boolean" />
</xsd:complexType>
<xsd:complexType name="semaphore_resource">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="name" type="xsd:string" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="messenger">
<xsd:sequence>
<xsd:element name="serializer" type="messenger_serializer" minOccurs="0" />
@@ -552,6 +626,7 @@
<xsd:attribute name="serializer" type="xsd:string" />
<xsd:attribute name="dsn" type="xsd:string" />
<xsd:attribute name="failure-transport" type="xsd:string" />
<xsd:attribute name="rate-limiter" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="messenger_retry_strategy">
@@ -564,10 +639,11 @@
<xsd:complexType name="messenger_bus">
<xsd:sequence>
<xsd:element name="default-middleware" type="default_middleware_elem" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="middleware" type="messenger_middleware" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="default-middleware" type="default_middleware"/>
<xsd:attribute name="default-middleware" type="default_middleware_attr"/>
</xsd:complexType>
<xsd:complexType name="messenger_middleware">
@@ -593,6 +669,7 @@
<xsd:element name="header" type="http_header" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="peer-fingerprint" type="fingerprint" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="retry-failed" type="http_client_retry_failed" minOccurs="0" maxOccurs="1" />
<xsd:element name="extra" type="xsd:anyType" minOccurs="0" maxOccurs="unbounded" />
</xsd:choice>
<xsd:attribute name="max-redirects" type="xsd:integer" />
<xsd:attribute name="http-version" type="xsd:string" />
@@ -618,6 +695,7 @@
<xsd:element name="header" type="http_header" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="peer-fingerprint" type="fingerprint" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="retry-failed" type="http_client_retry_failed" minOccurs="0" maxOccurs="1" />
<xsd:element name="extra" type="xsd:anyType" minOccurs="0" maxOccurs="unbounded" />
</xsd:choice>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="scope" type="xsd:string" />
@@ -721,6 +799,7 @@
<xsd:attribute name="allow-revalidate" type="xsd:boolean" />
<xsd:attribute name="stale-while-revalidate" type="xsd:integer" />
<xsd:attribute name="stale-if-error" type="xsd:integer" />
<xsd:attribute name="terminate-on-cache-hit" type="xsd:boolean" />
</xsd:complexType>
<xsd:simpleType name="http_cache_trace_levels">
@@ -748,7 +827,7 @@
<xsd:attribute name="lock-factory" type="xsd:string" />
<xsd:attribute name="storage-service" type="xsd:string" />
<xsd:attribute name="cache-pool" type="xsd:string" />
<xsd:attribute name="strategy" type="xsd:string" />
<xsd:attribute name="policy" type="xsd:string" />
<xsd:attribute name="limit" type="xsd:int" />
<xsd:attribute name="interval" type="xsd:string" />
</xsd:complexType>
@@ -826,4 +905,83 @@
<xsd:attribute name="email" type="xsd:string" use="required" />
<xsd:attribute name="phone" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="html-sanitizer">
<xsd:sequence>
<xsd:element name="sanitizer" type="sanitizer" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="enabled" type="xsd:boolean" />
</xsd:complexType>
<xsd:complexType name="sanitizer">
<xsd:sequence>
<xsd:element name="allow-element" type="element-option" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="block-element" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="drop-element" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="allow-attribute" type="attribute-option" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="drop-attribute" type="attribute-option" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="force-attribute" type="force-attribute" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="allowed-link-scheme" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="allowed-link-host" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="allowed-media-scheme" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="allowed-media-host" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="with-attribute-sanitizer" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="without-attribute-sanitizer" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="allow-safe-elements" type="xsd:boolean" />
<xsd:attribute name="allow-static-elements" type="xsd:boolean" />
<xsd:attribute name="force-https-urls" type="xsd:boolean" />
<xsd:attribute name="allow-relative-links" type="xsd:boolean" />
<xsd:attribute name="allow-relative-medias" type="xsd:boolean" />
<xsd:attribute name="max-input-length" type="xsd:positiveInteger" />
</xsd:complexType>
<xsd:complexType name="element-option">
<xsd:sequence>
<xsd:element name="attribute" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="attribute-option">
<xsd:sequence>
<xsd:element name="element" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="force-attribute">
<xsd:sequence>
<xsd:element name="attribute" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="webhook">
<xsd:sequence>
<xsd:element name="routing" type="webhook_routing" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="enabled" type="xsd:boolean" />
<xsd:attribute name="message-bus" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="webhook_routing" mixed="true">
<xsd:sequence>
<xsd:element name="service" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="secret" type="xsd:string" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="remote-event">
<xsd:attribute name="enabled" type="xsd:boolean" />
</xsd:complexType>
</xsd:schema>