From 5a28d297775bd7e4990974c56e3963b3fc65f160 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 30 Sep 2025 18:24:50 +0200 Subject: [PATCH] Fix XSD in XML examples --- bundles/best_practices.rst | 5 +- bundles/configuration.rst | 30 +-- bundles/override.rst | 5 +- bundles/prepend_extension.rst | 7 +- cache.rst | 81 +++--- components/config/definition.rst | 1 - components/dependency_injection.rst | 5 +- .../_imports-parameters-note.rst.inc | 5 +- .../dependency_injection/compilation.rst | 10 +- components/phpunit_bridge.rst | 10 +- components/uid.rst | 18 +- components/var_dumper.rst | 8 +- configuration.rst | 73 +++--- configuration/env_var_processors.rst | 180 ++++++------- .../front_controllers_and_kernel.rst | 10 +- configuration/micro_kernel_trait.rst | 8 +- configuration/override_dir_structure.rst | 20 +- configuration/secrets.rst | 16 +- configuration/using_parameters_in_dic.rst | 8 +- console/commands_as_services.rst | 7 +- controller/error_pages.rst | 14 +- controller/service.rst | 14 +- controller/upload_file.rst | 6 +- controller/value_resolver.rst | 7 +- create_framework/unit_testing.rst | 2 +- deployment/proxies.rst | 10 +- doctrine/associations.rst | 14 +- doctrine/custom_dql_functions.rst | 20 +- doctrine/dbal.rst | 20 +- doctrine/events.rst | 7 +- doctrine/multiple_entity_managers.rst | 10 +- doctrine/resolve_target_entity.rst | 10 +- event_dispatcher.rst | 14 +- form/bootstrap4.rst | 10 +- form/bootstrap5.rst | 10 +- form/create_custom_field_type.rst | 10 +- form/form_collections.rst | 7 +- form/form_themes.rst | 18 +- form/type_guesser.rst | 7 +- forms.rst | 17 +- frontend/custom_version_strategy.rst | 13 +- html_sanitizer.rst | 99 ++++---- http_cache.rst | 10 +- http_cache/cache_invalidation.rst | 5 +- http_cache/esi.rst | 20 +- http_cache/ssi.rst | 10 +- http_client.rst | 78 +++--- lock.rst | 18 +- logging.rst | 30 +-- logging/channels_handlers.rst | 20 +- logging/formatter.rst | 10 +- logging/handlers.rst | 30 +-- logging/monolog_console.rst | 7 +- logging/monolog_email.rst | 18 +- logging/monolog_exclude_http_codes.rst | 10 +- logging/processors.rst | 40 ++- mailer.rst | 83 +++--- messenger.rst | 201 ++++++--------- messenger/custom-transport.rst | 17 +- notifier.rst | 67 ++--- performance.rst | 12 +- profiler.rst | 14 +- quick_tour/the_architecture.rst | 10 +- rate_limiter.rst | 30 +-- reference/configuration/debug.rst | 11 +- reference/configuration/doctrine.rst | 36 ++- reference/configuration/framework.rst | 240 ++++++++---------- reference/configuration/kernel.rst | 6 +- reference/configuration/monolog.rst | 2 +- reference/configuration/security.rst | 96 +++---- reference/configuration/twig.rst | 29 +-- reference/configuration/web_profiler.rst | 2 +- reference/constraints/All.rst | 6 +- reference/constraints/AtLeastOneOf.rst | 6 +- reference/constraints/Bic.rst | 6 +- reference/constraints/Blank.rst | 6 +- reference/constraints/Callback.rst | 12 +- reference/constraints/CardScheme.rst | 6 +- reference/constraints/Cascade.rst | 6 +- reference/constraints/Choice.rst | 18 +- reference/constraints/Cidr.rst | 6 +- reference/constraints/Collection.rst | 12 +- reference/constraints/Compound.rst | 6 +- reference/constraints/Count.rst | 6 +- reference/constraints/Country.rst | 6 +- reference/constraints/CssColor.rst | 6 +- reference/constraints/Currency.rst | 6 +- reference/constraints/Date.rst | 6 +- reference/constraints/DateTime.rst | 6 +- reference/constraints/DisableAutoMapping.rst | 6 +- reference/constraints/DivisibleBy.rst | 6 +- reference/constraints/Email.rst | 6 +- reference/constraints/EnableAutoMapping.rst | 6 +- reference/constraints/EqualTo.rst | 6 +- reference/constraints/Expression.rst | 17 +- .../constraints/ExpressionLanguageSyntax.rst | 6 +- reference/constraints/ExpressionSyntax.rst | 6 +- reference/constraints/File.rst | 6 +- reference/constraints/GreaterThan.rst | 24 +- reference/constraints/GreaterThanOrEqual.rst | 24 +- reference/constraints/Hostname.rst | 6 +- reference/constraints/Iban.rst | 6 +- reference/constraints/IdenticalTo.rst | 6 +- reference/constraints/Image.rst | 6 +- reference/constraints/Ip.rst | 6 +- reference/constraints/IsFalse.rst | 6 +- reference/constraints/IsNull.rst | 6 +- reference/constraints/IsTrue.rst | 6 +- reference/constraints/Isbn.rst | 6 +- reference/constraints/Isin.rst | 6 +- reference/constraints/Issn.rst | 6 +- reference/constraints/Json.rst | 6 +- reference/constraints/Language.rst | 6 +- reference/constraints/Length.rst | 6 +- reference/constraints/LessThan.rst | 24 +- reference/constraints/LessThanOrEqual.rst | 24 +- reference/constraints/Locale.rst | 6 +- reference/constraints/Luhn.rst | 6 +- reference/constraints/Negative.rst | 6 +- reference/constraints/NegativeOrZero.rst | 6 +- .../constraints/NoSuspiciousCharacters.rst | 6 +- reference/constraints/NotBlank.rst | 6 +- .../constraints/NotCompromisedPassword.rst | 6 +- reference/constraints/NotEqualTo.rst | 6 +- reference/constraints/NotIdenticalTo.rst | 6 +- reference/constraints/NotNull.rst | 6 +- reference/constraints/PasswordStrength.rst | 6 +- reference/constraints/Positive.rst | 6 +- reference/constraints/PositiveOrZero.rst | 6 +- reference/constraints/Range.rst | 24 +- reference/constraints/Regex.rst | 18 +- reference/constraints/Sequentially.rst | 6 +- reference/constraints/Time.rst | 6 +- reference/constraints/Timezone.rst | 6 +- reference/constraints/Traverse.rst | 12 +- reference/constraints/Type.rst | 6 +- reference/constraints/Ulid.rst | 6 +- reference/constraints/Unique.rst | 12 +- reference/constraints/UniqueEntity.rst | 18 +- reference/constraints/Url.rst | 24 +- reference/constraints/UserPassword.rst | 6 +- reference/constraints/Uuid.rst | 6 +- reference/constraints/Valid.rst | 12 +- reference/constraints/When.rst | 10 +- reference/dic_tags.rst | 140 +++++----- routing.rst | 196 +++++++------- routing/custom_route_loader.rst | 35 ++- security.rst | 194 ++++++-------- security/access_control.rst | 50 ++-- security/access_denied_handler.rst | 14 +- security/access_token.rst | 90 +++---- security/csrf.rst | 20 +- security/custom_authenticator.rst | 10 +- security/entry_point.rst | 20 +- security/firewall_restriction.rst | 40 ++- security/force_https.rst | 10 +- security/form_login.rst | 50 ++-- security/impersonating_user.rst | 46 ++-- security/ldap.rst | 46 ++-- security/login_link.rst | 67 ++--- security/passwords.rst | 47 ++-- security/remember_me.rst | 50 ++-- security/user_checkers.rst | 27 +- security/user_providers.rst | 47 ++-- security/voters.rst | 21 +- serializer.rst | 70 +++-- serializer/custom_name_converter.rst | 9 +- serializer/custom_normalizer.rst | 7 +- serializer/encoders.rst | 7 +- service_container.rst | 92 +++---- service_container/alias_private.rst | 39 ++- service_container/autowiring.rst | 24 +- service_container/calls.rst | 12 +- service_container/configurators.rst | 14 +- service_container/expression_language.rst | 14 +- service_container/factories.rst | 49 ++-- service_container/import.rst | 49 ++-- service_container/injection_types.rst | 26 +- service_container/lazy_services.rst | 14 +- service_container/optional_dependencies.rst | 14 +- service_container/parent_services.rst | 14 +- service_container/service_closures.rst | 6 +- service_container/service_decoration.rst | 46 ++-- .../service_subscribers_locators.rst | 38 ++- service_container/synthetic_services.rst | 7 +- service_container/tags.rst | 88 +++---- session.rst | 119 ++++----- templates.rst | 69 +++-- testing.rst | 10 +- testing/profiling.rst | 8 +- translation.rst | 67 ++--- validation.rst | 35 ++- validation/custom_constraint.rst | 19 +- validation/groups.rst | 9 +- validation/sequence_provider.rst | 26 +- validation/severity.rst | 6 +- validation/translations.rst | 17 +- webhook.rst | 10 +- workflow.rst | 38 ++- workflow/dumping-workflows.rst | 7 +- workflow/workflow-and-state-machine.rst | 7 +- 201 files changed, 2129 insertions(+), 2806 deletions(-) diff --git a/bundles/best_practices.rst b/bundles/best_practices.rst index 5f0259e074e..3f4de7fd3da 100644 --- a/bundles/best_practices.rst +++ b/bundles/best_practices.rst @@ -432,9 +432,8 @@ The end user can provide values in any configuration file: fabien@example.com diff --git a/bundles/configuration.rst b/bundles/configuration.rst index ab15675105f..2749f68c7e6 100644 --- a/bundles/configuration.rst +++ b/bundles/configuration.rst @@ -25,12 +25,10 @@ as integration of other related components: @@ -171,10 +169,9 @@ can add some configuration that looks like this: @@ -514,20 +510,18 @@ can place it anywhere you like. You should return this path as the base path:: } } -Assuming the XSD file is called ``hello-1.0.xsd``, the schema location will be -``https://acme_company.com/schema/dic/hello/hello-1.0.xsd``: +Assuming the XSD file is called ``hello-1.0.xsd``, the schema location should be +``https://acme_company.com/schema/hello-1.0.xsd``: .. code-block:: xml diff --git a/bundles/override.rst b/bundles/override.rst index f25bd785373..910d284ab18 100644 --- a/bundles/override.rst +++ b/bundles/override.rst @@ -126,9 +126,8 @@ to a new validation group: diff --git a/bundles/prepend_extension.rst b/bundles/prepend_extension.rst index afde2595e98..7416a6b2f04 100644 --- a/bundles/prepend_extension.rst +++ b/bundles/prepend_extension.rst @@ -113,14 +113,11 @@ registered and the ``entity_manager_name`` setting for ``acme_hello`` is set to diff --git a/cache.rst b/cache.rst index 71fe56c2b33..9306627500b 100644 --- a/cache.rst +++ b/cache.rst @@ -66,12 +66,10 @@ adapter (template) they use by using the ``app`` and ``system`` key like: @@ -241,12 +237,10 @@ You can also create more customized pools: @@ -361,9 +355,8 @@ with either :class:`Symfony\\Contracts\\Cache\\CacheInterface` or @@ -423,12 +416,10 @@ and use that when configuring the pool. @@ -515,12 +506,10 @@ Symfony stores the item automatically in all the missing pools. @@ -609,12 +598,10 @@ to enable this feature. This could be added by using the following configuration @@ -662,12 +649,10 @@ achieved by specifying the adapter. @@ -819,13 +804,11 @@ Then, register the ``SodiumMarshaller`` service using this key: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -950,12 +933,10 @@ a message bus to compute values in a worker: diff --git a/components/config/definition.rst b/components/config/definition.rst index 96f0c177aaa..4b88075c283 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -650,7 +650,6 @@ The example results in the following: password="" memory="false" > - diff --git a/components/dependency_injection/_imports-parameters-note.rst.inc b/components/dependency_injection/_imports-parameters-note.rst.inc index 1389ca78fe3..6640bd65228 100644 --- a/components/dependency_injection/_imports-parameters-note.rst.inc +++ b/components/dependency_injection/_imports-parameters-note.rst.inc @@ -17,9 +17,8 @@ diff --git a/components/dependency_injection/compilation.rst b/components/dependency_injection/compilation.rst index 7db22a68d5f..068708b04d5 100644 --- a/components/dependency_injection/compilation.rst +++ b/components/dependency_injection/compilation.rst @@ -196,12 +196,10 @@ The XML version of the config would then look like this: fooValue diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 5a2c508b68d..6faf0933f29 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -52,7 +52,7 @@ to register a new `test listener`_ called ``SymfonyTestsListener``: .. code-block:: xml - @@ -201,7 +201,7 @@ message, enclosed with ``/``. For example, with: .. code-block:: xml - @@ -420,7 +420,7 @@ configuration file: .. code-block:: xml - @@ -875,7 +875,7 @@ namespaces in the ``phpunit.xml`` file, as done for example in the .. code-block:: xml - @@ -1054,7 +1054,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file: .. code-block:: xml - diff --git a/components/uid.rst b/components/uid.rst index 4b6938e98d2..42b8a1b8f57 100644 --- a/components/uid.rst +++ b/components/uid.rst @@ -179,12 +179,11 @@ configure the behavior of the factory using configuration files:: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xmlns:framework="http://symfony.com/schema/dic/symfony" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/components/var_dumper.rst b/components/var_dumper.rst index cfc57140b52..eb60b3fadd4 100644 --- a/components/var_dumper.rst +++ b/components/var_dumper.rst @@ -129,12 +129,10 @@ the :ref:`dump_destination option ` of the diff --git a/configuration.rst b/configuration.rst index 625e93b12d0..99e4e474026 100644 --- a/configuration.rst +++ b/configuration.rst @@ -115,12 +115,10 @@ configuration files, even if they use a different format: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -200,13 +198,11 @@ reusable configuration value. By convention, parameters are defined under the - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -318,13 +314,11 @@ configuration file using a special syntax: wrap the parameter name in two ``%`` - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -490,11 +484,10 @@ files directly in the ``config/packages/`` directory. + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -704,13 +695,11 @@ To do so, define a parameter with the same name as the env var using this syntax - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > some_secret @@ -1146,10 +1135,9 @@ doesn't work for parameters: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > ... @@ -1203,10 +1191,9 @@ whenever a service/controller defines a ``$projectDir`` argument, use this: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -76,13 +74,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > some_secret @@ -123,13 +119,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > true @@ -167,13 +161,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > %env(not:APP_DEBUG)% @@ -210,13 +202,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > Symfony\Component\HttpFoundation\Request::METHOD_HEAD @@ -260,13 +250,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > ["en","de","es"] %env(json:ALLOWED_LANGUAGES)% @@ -306,10 +294,9 @@ Symfony provides the following env var processors: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > 10.0.0.1 http://%sentry_host%/project @@ -344,13 +331,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > en,de,es %env(csv:ALLOWED_LANGUAGES)% @@ -390,13 +375,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > redis://127.0.0.1:6380,redis://127.0.0.1:6381 @@ -441,13 +424,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > ../config/auth.json @@ -482,13 +463,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > ../config/.runtime-evaluated.php @@ -524,13 +503,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > ../config/auth.json @@ -565,13 +542,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > /opt/application/.secrets.json %env(key:database_password:json:file:SECRETS_FILE)% @@ -603,12 +578,11 @@ Symfony provides the following env var processors: + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > %env(default:raw_key:file:PRIVATE_KEY)% @@ -656,10 +630,9 @@ Symfony provides the following env var processors: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -721,10 +694,9 @@ Symfony provides the following env var processors: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -768,13 +740,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > %env(enum:App\Enum\Suit:CARD_SUIT)% @@ -809,13 +779,11 @@ Symfony provides the following env var processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -851,13 +819,11 @@ It is also possible to combine any number of processors: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > %kernel.project_dir%/config/auth.json diff --git a/configuration/front_controllers_and_kernel.rst b/configuration/front_controllers_and_kernel.rst index b55f66afc33..861eb90373e 100644 --- a/configuration/front_controllers_and_kernel.rst +++ b/configuration/front_controllers_and_kernel.rst @@ -170,13 +170,11 @@ parameter used, for example, to turn Twig's debug mode on: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 511a15a69fd..ffcf32c7dc3 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -365,11 +365,11 @@ because the configuration started to get bigger: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/configuration/override_dir_structure.rst b/configuration/override_dir_structure.rst index e5dff35b6d0..be6050ed081 100644 --- a/configuration/override_dir_structure.rst +++ b/configuration/override_dir_structure.rst @@ -171,13 +171,11 @@ for multiple directories): - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > %kernel.project_dir%/resources/views @@ -215,13 +213,11 @@ configuration option to define your own translations directory (use :ref:`framew - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > %kernel.project_dir%/i18n diff --git a/configuration/secrets.rst b/configuration/secrets.rst index 653bd92f611..b18e0cb17d6 100644 --- a/configuration/secrets.rst +++ b/configuration/secrets.rst @@ -119,13 +119,11 @@ If you stored a ``DATABASE_PASSWORD`` secret, you can reference it by: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://example.org/schema/dic/my_bundle/my_bundle-1.0.xsd" + > diff --git a/console/commands_as_services.rst b/console/commands_as_services.rst index 1393879a1df..38b83ecd288 100644 --- a/console/commands_as_services.rst +++ b/console/commands_as_services.rst @@ -94,10 +94,9 @@ Or set the ``command`` attribute on the ``console.command`` tag in your service - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/controller/error_pages.rst b/controller/error_pages.rst index fc36b88779a..125dd255bc9 100644 --- a/controller/error_pages.rst +++ b/controller/error_pages.rst @@ -162,10 +162,9 @@ automatically when installing ``symfony/framework-bundle``): - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/routing-1.0.xsd" + > @@ -260,10 +259,9 @@ configuration option to point to it: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > App\Controller\ErrorController::show diff --git a/controller/service.rst b/controller/service.rst index 88af093ff29..44fb02b5449 100644 --- a/controller/service.rst +++ b/controller/service.rst @@ -119,10 +119,9 @@ a service like: ``App\Controller\HelloController::index``: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/routing-1.0.xsd" + > @@ -180,10 +179,9 @@ which is a common practice when following the `ADR pattern`_ - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/routing-1.0.xsd" + > App\Controller\HelloController diff --git a/controller/upload_file.rst b/controller/upload_file.rst index 941bd911a78..7828f49054f 100644 --- a/controller/upload_file.rst +++ b/controller/upload_file.rst @@ -283,9 +283,9 @@ Then, define a service for this class: + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/controller/value_resolver.rst b/controller/value_resolver.rst index f0f0db9aff1..6cd80533d1a 100644 --- a/controller/value_resolver.rst +++ b/controller/value_resolver.rst @@ -408,10 +408,9 @@ but you can set it yourself to change its ``priority`` or ``name`` attributes. - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/create_framework/unit_testing.rst b/create_framework/unit_testing.rst index 8d35b3a310c..0336bbafc09 100644 --- a/create_framework/unit_testing.rst +++ b/create_framework/unit_testing.rst @@ -20,7 +20,7 @@ Then, create a PHPUnit configuration file in ``example.com/phpunit.dist.xml``: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > 192.0.0.1,10.0.0.0/8 diff --git a/doctrine/associations.rst b/doctrine/associations.rst index bb670eeee52..b5a650a2a7a 100644 --- a/doctrine/associations.rst +++ b/doctrine/associations.rst @@ -188,10 +188,9 @@ the ``Product`` entity (and getter & setter methods): - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" + > - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > @@ -94,13 +92,11 @@ In Symfony, you can register your custom DQL functions as follows: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > diff --git a/doctrine/dbal.rst b/doctrine/dbal.rst index 4f47b61eb61..c4e83f64f67 100644 --- a/doctrine/dbal.rst +++ b/doctrine/dbal.rst @@ -82,13 +82,11 @@ mapping types, read Doctrine's `Custom Mapping Types`_ section of their document - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > @@ -134,13 +132,11 @@ mapping type: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > string diff --git a/doctrine/events.rst b/doctrine/events.rst index 3f8f93bc2ee..16855ca15b8 100644 --- a/doctrine/events.rst +++ b/doctrine/events.rst @@ -84,10 +84,9 @@ define a callback for the ``prePersist`` Doctrine event: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" + > diff --git a/doctrine/multiple_entity_managers.rst b/doctrine/multiple_entity_managers.rst index 1a56c55ddad..3f4893b567a 100644 --- a/doctrine/multiple_entity_managers.rst +++ b/doctrine/multiple_entity_managers.rst @@ -60,13 +60,11 @@ The following configuration code shows how you can configure two entity managers - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > diff --git a/event_dispatcher.rst b/event_dispatcher.rst index ffa9e67aa0d..650898cba56 100644 --- a/event_dispatcher.rst +++ b/event_dispatcher.rst @@ -76,10 +76,9 @@ notify Symfony that it is an event listener by using a special "tag": - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -482,10 +481,9 @@ First, define some token configuration as parameters: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > pass1 diff --git a/form/bootstrap4.rst b/form/bootstrap4.rst index eef016aa58a..a79df90facc 100644 --- a/form/bootstrap4.rst +++ b/form/bootstrap4.rst @@ -39,13 +39,11 @@ configuration: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > bootstrap_4_layout.html.twig diff --git a/form/bootstrap5.rst b/form/bootstrap5.rst index db098a1ba09..3948a07b697 100644 --- a/form/bootstrap5.rst +++ b/form/bootstrap5.rst @@ -39,13 +39,11 @@ configuration: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > bootstrap_5_layout.html.twig diff --git a/form/create_custom_field_type.rst b/form/create_custom_field_type.rst index 0d92a967fa0..050497812f7 100644 --- a/form/create_custom_field_type.rst +++ b/form/create_custom_field_type.rst @@ -381,13 +381,11 @@ add this new template at the end of the list (each theme overrides all the previ - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > ... form/custom_types.html.twig diff --git a/form/form_collections.rst b/form/form_collections.rst index 3c8a2050690..0e9682c2a0e 100644 --- a/form/form_collections.rst +++ b/form/form_collections.rst @@ -483,10 +483,9 @@ you will learn about next!). - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" + > diff --git a/form/form_themes.rst b/form/form_themes.rst index 8b82982edaa..1127727b0dc 100644 --- a/form/form_themes.rst +++ b/form/form_themes.rst @@ -72,12 +72,11 @@ want to use another theme for all the forms of your app, configure it in the - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > bootstrap_5_horizontal_layout.html.twig @@ -499,12 +498,11 @@ you want to apply the theme globally to all forms, define the - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > form/my_theme.html.twig diff --git a/form/type_guesser.rst b/form/type_guesser.rst index 106eb4e7742..34b605e037c 100644 --- a/form/type_guesser.rst +++ b/form/type_guesser.rst @@ -196,10 +196,9 @@ and tag it with ``form.type_guesser``: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/forms.rst b/forms.rst index bea93edb25d..712bae2315d 100644 --- a/forms.rst +++ b/forms.rst @@ -351,13 +351,11 @@ can set this option to generate forms compatible with the Bootstrap 5 CSS framew - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > bootstrap_5_layout.html.twig @@ -527,10 +525,9 @@ object. - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/frontend/custom_version_strategy.rst b/frontend/custom_version_strategy.rst index 1a0dca3e393..78d3035599b 100644 --- a/frontend/custom_version_strategy.rst +++ b/frontend/custom_version_strategy.rst @@ -110,9 +110,8 @@ After creating the strategy PHP class, register it as a Symfony service. @@ -160,11 +159,11 @@ the :ref:`version_strategy ` option: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/html_sanitizer.rst b/html_sanitizer.rst index 920d37a81c3..87a77e21a8d 100644 --- a/html_sanitizer.rst +++ b/html_sanitizer.rst @@ -177,12 +177,11 @@ You can do this by defining a new HTML sanitizer in the configuration: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -249,12 +248,11 @@ Safe elements - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -506,12 +502,11 @@ on all elements allowed *before this setting*. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -587,12 +582,11 @@ This option allows you to disallow attributes that were allowed before. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -675,12 +669,11 @@ element (even if the original one didn't contain a ``rel`` attribute): - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -753,12 +746,11 @@ URLs of ```` elements: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1061,12 +1051,11 @@ to enable it for an HTML sanitizer: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > App\Sanitizer\CustomAttributeSanitizer diff --git a/http_cache.rst b/http_cache.rst index 7e886b022d0..a1ba29b9a11 100644 --- a/http_cache.rst +++ b/http_cache.rst @@ -84,13 +84,11 @@ Use the ``framework.http_cache`` option to enable the proxy for the - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/http_cache/cache_invalidation.rst b/http_cache/cache_invalidation.rst index 394c79aed42..b946f4342e4 100644 --- a/http_cache/cache_invalidation.rst +++ b/http_cache/cache_invalidation.rst @@ -119,9 +119,8 @@ Then, register the class as a service that :doc:`decorates diff --git a/http_cache/esi.rst b/http_cache/esi.rst index 044430edcc3..8b949f24cea 100644 --- a/http_cache/esi.rst +++ b/http_cache/esi.rst @@ -68,13 +68,11 @@ First, to use ESI, be sure to enable it in your application configuration: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -230,13 +228,11 @@ that must be enabled in your configuration: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/http_cache/ssi.rst b/http_cache/ssi.rst index 8b280bf75a6..389e789e6a8 100644 --- a/http_cache/ssi.rst +++ b/http_cache/ssi.rst @@ -57,13 +57,11 @@ First, to use SSI, be sure to enable it in your application configuration: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/http_client.rst b/http_client.rst index bdc843a32e8..3f98a1b526b 100644 --- a/http_client.rst +++ b/http_client.rst @@ -104,12 +104,11 @@ You can configure the global options using the ``default_options`` option: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -186,12 +185,11 @@ This option cannot be overridden per request: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -254,12 +252,11 @@ autoconfigure the HTTP client based on the requested URL: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -423,12 +420,11 @@ each request (which overrides any global authentication): - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -967,12 +962,11 @@ of your application: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1124,12 +1118,11 @@ To force HTTP/2 for ``http`` URLs, you need to enable it explicitly via the - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2092,9 +2085,9 @@ Then configure Symfony to use your callback: - + xmlns:xsd="https://www.w3.org/2001/XMLSchema-instance" + xsd:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -2103,12 +2096,11 @@ Then configure Symfony to use your callback: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/lock.rst b/lock.rst index 179a5cd9d05..6d9963fbe98 100644 --- a/lock.rst +++ b/lock.rst @@ -73,12 +73,11 @@ this behavior by using the ``lock`` key like: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > flock @@ -257,12 +256,11 @@ provides :ref:`named lock `: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > semaphore diff --git a/logging.rst b/logging.rst index 99c09f3dec5..b6a9f75e97f 100644 --- a/logging.rst +++ b/logging.rst @@ -138,13 +138,11 @@ to write logs using the :phpfunction:`syslog` function: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > diff --git a/logging/channels_handlers.rst b/logging/channels_handlers.rst index 3cac1d01ba5..0d9c561e27a 100644 --- a/logging/channels_handlers.rst +++ b/logging/channels_handlers.rst @@ -49,13 +49,11 @@ from the ``security`` channel. The following example does that only in the - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > @@ -145,13 +143,11 @@ You can also configure additional channels without the need to tag your services - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > foo bar diff --git a/logging/formatter.rst b/logging/formatter.rst index 6f2bfc7906c..24cc551216f 100644 --- a/logging/formatter.rst +++ b/logging/formatter.rst @@ -26,13 +26,11 @@ configure your handler to use it: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > @@ -96,13 +94,11 @@ each log, an HTTP request will be made to push the log to Elasticsearch: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/logging/monolog_email.rst b/logging/monolog_email.rst index d52629e0797..9223e0367c5 100644 --- a/logging/monolog_email.rst +++ b/logging/monolog_email.rst @@ -46,12 +46,11 @@ it is broken down. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > diff --git a/logging/processors.rst b/logging/processors.rst index 17044f229e0..a70ecae8751 100644 --- a/logging/processors.rst +++ b/logging/processors.rst @@ -74,13 +74,11 @@ information: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > @@ -128,13 +126,11 @@ Finally, set the formatter to be used on whatever handler you want: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > @@ -284,13 +278,11 @@ to the ``monolog.processor`` tag to only apply a processor for the given channel - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/monolog-1.0.xsd" + > diff --git a/mailer.rst b/mailer.rst index 303c7db2061..fcdbd7991b8 100644 --- a/mailer.rst +++ b/mailer.rst @@ -40,12 +40,11 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``, - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -734,12 +733,11 @@ and headers. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -993,12 +991,11 @@ image files as usual. First, to simplify things, define a Twig namespace called - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > @@ -1102,12 +1099,11 @@ called ``styles`` that points to the directory where ``email.css`` lives: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > @@ -1393,12 +1389,11 @@ This can be configured by replacing the ``dsn`` configuration entry with a - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1465,13 +1460,11 @@ you have a transport called ``async``, you can route the message there: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > %env(MESSENGER_TRANSPORT_DSN)% @@ -1547,13 +1540,11 @@ disable asynchronous delivery. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1920,12 +1910,11 @@ a specific address, instead of the *real* address: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/messenger.rst b/messenger.rst index f8597d78e33..628ff7249c1 100644 --- a/messenger.rst +++ b/messenger.rst @@ -160,13 +160,11 @@ that uses this configuration: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > %env(MESSENGER_TRANSPORT_DSN)% @@ -226,13 +224,11 @@ you can configure them to be sent to a transport: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -296,13 +292,11 @@ to multiple transports: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -435,13 +429,11 @@ transport and "sending" messages there to be handled immediately: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -586,13 +578,11 @@ different messages to them. For example: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -940,13 +930,11 @@ by setting its ``rate_limiter`` option: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1013,13 +1001,11 @@ this is configurable for each transport: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1113,13 +1099,11 @@ be discarded. To avoid this happening, you can instead configure a ``failure_tra - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1233,13 +1217,11 @@ override the failure transport for only specific transports: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1331,13 +1313,11 @@ options. Options can be passed to the transport via a DSN string or configuratio - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1825,13 +1805,11 @@ override it in the ``test`` environment to use this transport: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2040,13 +2018,11 @@ this globally (or for each transport) to a service that implements - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2374,10 +2350,9 @@ with ``messenger.message_handler``. - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -2648,13 +2623,11 @@ Then, make sure to "route" your message to *both* transports: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2862,13 +2835,11 @@ and a different instance will be created per bus. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2951,13 +2922,11 @@ may want to use: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -3027,13 +2996,11 @@ to configure the validation groups. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -3192,13 +3159,11 @@ transports: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -3277,13 +3242,11 @@ an **event bus**. The event bus could have zero or more subscribers. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -3372,10 +3335,9 @@ you can restrict each handler to a specific bus using the ``messenger.message_ha - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -3423,10 +3385,9 @@ you can determine the message bus based on an implemented interface: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/messenger/custom-transport.rst b/messenger/custom-transport.rst index 7d1698126d1..da8c36ac74a 100644 --- a/messenger/custom-transport.rst +++ b/messenger/custom-transport.rst @@ -151,10 +151,9 @@ Otherwise, add the following: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -191,13 +190,11 @@ named transport using your own DSN: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/notifier.rst b/notifier.rst index 9801432e9aa..76ddaf7e77e 100644 --- a/notifier.rst +++ b/notifier.rst @@ -244,13 +244,11 @@ configure the ``texter_transports``: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -408,13 +406,11 @@ Chatters are configured using the ``chatter_transports`` setting: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -504,13 +500,11 @@ notification emails: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -652,13 +644,11 @@ transport: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -967,10 +955,9 @@ typical alert levels, which you can implement immediately using: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/performance.rst b/performance.rst index 748bbab7ba7..f89f63fa56f 100644 --- a/performance.rst +++ b/performance.rst @@ -67,9 +67,9 @@ container into a single file, which could improve performance when using - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > true @@ -247,9 +247,9 @@ in performance, you can stop generating the file as follows: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > false diff --git a/profiler.rst b/profiler.rst index 1cdf3e57867..ef595423d8e 100644 --- a/profiler.rst +++ b/profiler.rst @@ -176,10 +176,9 @@ create an alias pointing to the existing ``profiler`` service: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -545,10 +544,9 @@ you'll need to configure the data collector explicitly: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst index a323461885d..d643f27061f 100644 --- a/quick_tour/the_architecture.rst +++ b/quick_tour/the_architecture.rst @@ -255,13 +255,11 @@ using the special ``when@`` keyword: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/rate_limiter.rst b/rate_limiter.rst index f3785eddd9b..6e619d0f43f 100644 --- a/rate_limiter.rst +++ b/rate_limiter.rst @@ -148,13 +148,11 @@ enforce different levels of service (free or paid): - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -468,13 +466,11 @@ You can use the ``cache_pool`` option to override the cache used by a specific l - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -546,13 +542,11 @@ you can use a specific :ref:`named lock ` via the - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > diff --git a/reference/configuration/debug.rst b/reference/configuration/debug.rst index fb8f49821f1..31f791b3e35 100644 --- a/reference/configuration/debug.rst +++ b/reference/configuration/debug.rst @@ -25,7 +25,7 @@ key in your application configuration. When using XML, you must use the ``http://symfony.com/schema/dic/debug`` namespace and the related XSD schema is available at: - ``https://symfony.com/schema/dic/debug/debug-1.0.xsd`` + ``https://symfony.com/schema/debug-1.0.xsd`` max_items ~~~~~~~~~ @@ -80,12 +80,11 @@ Typically, you would set this to ``php://stderr``: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/debug-1.0.xsd" + > diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index 9b1569622e7..3e02a533cf4 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -18,7 +18,7 @@ configuration. When using XML, you must use the ``http://symfony.com/schema/dic/doctrine`` namespace and the related XSD schema is available at: - ``https://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd`` + ``https://symfony.com/schema/doctrine-1.0.xsd`` .. _`reference-dbal-configuration`: @@ -67,13 +67,11 @@ The following block shows all possible configuration keys: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -518,11 +515,10 @@ namespace in the ``src/Entity`` directory and gives them an ``App`` alias - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/doctrine-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -436,12 +435,11 @@ performance a bit: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > en es @@ -532,12 +530,11 @@ the application won't respond and the user will receive a 400 response. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > ^example\.com$ ^example\.org$ @@ -639,12 +636,11 @@ can also :ref:`disable CSRF protection on individual forms + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -708,12 +704,11 @@ You can also set ``esi`` to ``true`` to enable it: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -802,12 +797,11 @@ This service can be configured using ``framework.http_client.default_options``: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -866,12 +860,11 @@ these options and can define a few others: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1488,13 +1481,11 @@ To configure a ``jsonp`` format: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -1696,11 +1687,11 @@ and also to configure the session handler with a DSN: + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > 0 @@ -1960,12 +1950,11 @@ If ``null``, ``php.ini``'s `session.save_path`_ directive will be relied on: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2015,12 +2004,11 @@ Whether to enable the session support in the framework. - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2088,12 +2076,11 @@ This option allows you to prepend a base path to the URLs generated for assets: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2141,12 +2128,11 @@ collection each time it generates an asset's path: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2187,12 +2173,11 @@ You can group assets into packages, to specify different base URLs for them: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2383,11 +2367,11 @@ individually for each asset package: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2483,11 +2467,11 @@ package: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2774,12 +2758,11 @@ Defines the Doctrine entities that will be introspected to add - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -2935,12 +2918,11 @@ the component will look for additional validation files: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -3144,12 +3126,11 @@ This option also accepts a map of PHP errors to log levels: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > %env(LOCK_DSN)% @@ -3549,12 +3528,11 @@ the name as key and DSN as value: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > %env(SEMAPHORE_DSN)% @@ -3645,11 +3623,11 @@ the `SMTP session`_. This value overrides any other recipient set in the code. + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > @@ -3750,12 +3728,11 @@ A list of workflows to be created by the framework extension: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/symfony-1.0.xsd" + > - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > 1234567890 diff --git a/reference/configuration/monolog.rst b/reference/configuration/monolog.rst index 3e1ffab21a8..56e0614b940 100644 --- a/reference/configuration/monolog.rst +++ b/reference/configuration/monolog.rst @@ -17,7 +17,7 @@ in your application configuration. When using XML, you must use the ``http://symfony.com/schema/dic/monolog`` namespace and the related XSD schema is available at: - ``https://symfony.com/schema/dic/monolog/monolog-1.0.xsd`` + ``https://symfony.com/schema/monolog-1.0.xsd`` .. tip:: diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index 3ccea5f9026..0ece1ee9fc5 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -17,7 +17,7 @@ key in your application configuration. When using XML, you must use the ``http://symfony.com/schema/dic/security`` namespace and the related XSD schema is available at: - ``https://symfony.com/schema/dic/services/services-1.0.xsd`` + ``https://symfony.com/schema/services-1.0.xsd`` **Basic Options**: @@ -122,13 +122,11 @@ application: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > @@ -383,11 +381,10 @@ user logs out: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -454,11 +451,10 @@ It's also possible to use ``*`` as a wildcard for all directives: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd" + > @@ -614,12 +610,10 @@ The security configuration should be: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > @@ -830,13 +822,11 @@ Remote User Authentication - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > @@ -977,12 +965,10 @@ the session must not be used when authenticating users: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > @@ -1029,12 +1015,10 @@ session only if the application actually accesses the User object, (e.g. calling - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > @@ -1086,12 +1070,10 @@ Firewalls can configure a list of required badges that must be present on the au - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/security-1.0.xsd" + > diff --git a/reference/configuration/twig.rst b/reference/configuration/twig.rst index bec117cc609..af54b36bb41 100644 --- a/reference/configuration/twig.rst +++ b/reference/configuration/twig.rst @@ -17,7 +17,7 @@ under the ``twig`` key in your application configuration. When using XML, you must use the ``http://symfony.com/schema/dic/twig`` namespace and the related XSD schema is available at: - ``https://symfony.com/schema/dic/twig/twig-1.0.xsd`` + ``https://symfony.com/schema/twig-1.0.xsd`` auto_reload ~~~~~~~~~~~ @@ -213,12 +213,11 @@ The value of this option can be a regular expression, a glob, or a string: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > *.twig specific_file.html @@ -264,12 +263,11 @@ all the forms of the application: - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > bootstrap_5_layout.html.twig form/my_theme.html.twig @@ -399,12 +397,11 @@ the directory defined in the :ref:`default_path option - + xsi:schemaLocation="https://symfony.com/schema/services-1.0.xsd + https://symfony.com/schema/twig-1.0.xsd" + > email/default/templates diff --git a/reference/configuration/web_profiler.rst b/reference/configuration/web_profiler.rst index de706c73fef..ba7c661d5b7 100644 --- a/reference/configuration/web_profiler.rst +++ b/reference/configuration/web_profiler.rst @@ -18,7 +18,7 @@ under the ``web_profiler`` key in your application configuration. When using XML, you must use the ``http://symfony.com/schema/dic/webprofiler`` namespace and the related XSD schema is available at: - ``https://symfony.com/schema/dic/webprofiler/webprofiler-1.0.xsd`` + ``https://symfony.com/schema/webprofiler-1.0.xsd`` .. warning:: diff --git a/reference/constraints/All.rst b/reference/constraints/All.rst index 3aa05b1d2d0..0aa86d688aa 100644 --- a/reference/constraints/All.rst +++ b/reference/constraints/All.rst @@ -50,9 +50,9 @@ entry in that array: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/AtLeastOneOf.rst b/reference/constraints/AtLeastOneOf.rst index 0a6ab618aa5..ef048cd3d1c 100644 --- a/reference/constraints/AtLeastOneOf.rst +++ b/reference/constraints/AtLeastOneOf.rst @@ -68,9 +68,9 @@ The following constraints ensure that: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Bic.rst b/reference/constraints/Bic.rst index 69ce35248f3..4af16a323d2 100644 --- a/reference/constraints/Bic.rst +++ b/reference/constraints/Bic.rst @@ -46,9 +46,9 @@ will contain a Business Identifier Code (BIC). - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Blank.rst b/reference/constraints/Blank.rst index 485d25319ac..ca885669e77 100644 --- a/reference/constraints/Blank.rst +++ b/reference/constraints/Blank.rst @@ -53,9 +53,9 @@ of an ``Author`` class were blank, you could do the following: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index f4c78a9642a..37e8a1cbb8d 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -57,9 +57,9 @@ Configuration - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > validate @@ -184,9 +184,9 @@ You can then use the following configuration to invoke this validator: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > Acme\Validator diff --git a/reference/constraints/CardScheme.rst b/reference/constraints/CardScheme.rst index 6e98e6fab98..adf42acb783 100644 --- a/reference/constraints/CardScheme.rst +++ b/reference/constraints/CardScheme.rst @@ -50,9 +50,9 @@ on an object that will contain a credit card number. - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Cascade.rst b/reference/constraints/Cascade.rst index bd6050add0b..7fde31c3c4e 100644 --- a/reference/constraints/Cascade.rst +++ b/reference/constraints/Cascade.rst @@ -56,9 +56,9 @@ constraints that are set in the child classes ``BookMetadata`` and - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index cb1738eb7a6..4ec4fc068c3 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -58,9 +58,9 @@ If your valid choice list is simple, you can pass them in directly via the - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > @@ -156,9 +156,9 @@ constraint. - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > @@ -220,9 +220,9 @@ you can pass the class name and the method as an array. - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Cidr.rst b/reference/constraints/Cidr.rst index d5c52e74b2a..aacb4d0b940 100644 --- a/reference/constraints/Cidr.rst +++ b/reference/constraints/Cidr.rst @@ -43,9 +43,9 @@ Basic Usage - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Collection.rst b/reference/constraints/Collection.rst index 2d16d201b17..b10059a515c 100644 --- a/reference/constraints/Collection.rst +++ b/reference/constraints/Collection.rst @@ -101,9 +101,9 @@ following: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > @@ -229,9 +229,9 @@ you can do the following: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Compound.rst b/reference/constraints/Compound.rst index fc8081f5917..10644a51dac 100644 --- a/reference/constraints/Compound.rst +++ b/reference/constraints/Compound.rst @@ -76,9 +76,9 @@ You can now use it anywhere you need it: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Count.rst b/reference/constraints/Count.rst index 0bf40aca8e9..1c2645ee1cb 100644 --- a/reference/constraints/Count.rst +++ b/reference/constraints/Count.rst @@ -53,9 +53,9 @@ you might add the following: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Country.rst b/reference/constraints/Country.rst index 2f75b1c1354..00a3fc13c40 100644 --- a/reference/constraints/Country.rst +++ b/reference/constraints/Country.rst @@ -40,9 +40,9 @@ Basic Usage - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/CssColor.rst b/reference/constraints/CssColor.rst index fbbc982087d..23f88ad2d09 100644 --- a/reference/constraints/CssColor.rst +++ b/reference/constraints/CssColor.rst @@ -69,9 +69,9 @@ the named CSS colors: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Currency.rst b/reference/constraints/Currency.rst index cf074d4b069..bfd9e336b3a 100644 --- a/reference/constraints/Currency.rst +++ b/reference/constraints/Currency.rst @@ -43,9 +43,9 @@ a valid currency, you could do the following: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Date.rst b/reference/constraints/Date.rst index 93bd401cff6..0e149f38aee 100644 --- a/reference/constraints/Date.rst +++ b/reference/constraints/Date.rst @@ -41,9 +41,9 @@ Basic Usage - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/DateTime.rst b/reference/constraints/DateTime.rst index f6bcce7e5f5..5419b1b5de8 100644 --- a/reference/constraints/DateTime.rst +++ b/reference/constraints/DateTime.rst @@ -44,9 +44,9 @@ Basic Usage - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/DisableAutoMapping.rst b/reference/constraints/DisableAutoMapping.rst index e5cec52db2d..d8019813cae 100644 --- a/reference/constraints/DisableAutoMapping.rst +++ b/reference/constraints/DisableAutoMapping.rst @@ -56,9 +56,9 @@ metadata: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/DivisibleBy.rst b/reference/constraints/DivisibleBy.rst index dd90ad9a0fd..306a11b633b 100644 --- a/reference/constraints/DivisibleBy.rst +++ b/reference/constraints/DivisibleBy.rst @@ -59,9 +59,9 @@ The following constraints ensure that: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Email.rst b/reference/constraints/Email.rst index 19b1579b88a..bb855b766d0 100644 --- a/reference/constraints/Email.rst +++ b/reference/constraints/Email.rst @@ -44,9 +44,9 @@ Basic Usage - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/EnableAutoMapping.rst b/reference/constraints/EnableAutoMapping.rst index e221b7c07d0..1b97a8e0ab3 100644 --- a/reference/constraints/EnableAutoMapping.rst +++ b/reference/constraints/EnableAutoMapping.rst @@ -56,9 +56,9 @@ metadata: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/EqualTo.rst b/reference/constraints/EqualTo.rst index d5d78f60a0f..d80e2978d6e 100644 --- a/reference/constraints/EqualTo.rst +++ b/reference/constraints/EqualTo.rst @@ -58,9 +58,9 @@ and that the ``age`` is ``20``, you could do the following: - + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + > diff --git a/reference/constraints/Expression.rst b/reference/constraints/Expression.rst index 1f3b4dcdb7c..bf33a84dfb2 100644 --- a/reference/constraints/Expression.rst +++ b/reference/constraints/Expression.rst @@ -85,8 +85,9 @@ One way to accomplish this is with the Expression constraint: + xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://symfony.com/schema/constraint-mapping-1.0.xsd" + >