From 745b07b153c25b970dcc7c9f7b4aef87aa7f4dcb Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 2 Oct 2025 10:22:49 +0200 Subject: [PATCH] [DependencyInjection] Deprecate getNamespace() and getXsdValidationBasePath() methods --- bundles/configuration.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bundles/configuration.rst b/bundles/configuration.rst index dedfada2ea2..eee7b9f7c37 100644 --- a/bundles/configuration.rst +++ b/bundles/configuration.rst @@ -477,6 +477,14 @@ the extension. You might want to change this to a more professional URL:: } } +.. deprecated:: 7.4 + + The ``getNamespace()`` method, together with XML support, is deprecated + since Symfony 7.4 and will be removed in Symfony 8.0. + + If your bundle needs to remain compatible with older Symfony versions that + still support XML, keep this method and add the ``@deprecated`` annotation to it. + Providing an XML Schema ~~~~~~~~~~~~~~~~~~~~~~~ @@ -510,6 +518,14 @@ can place it anywhere you like. You should return this path as the base path:: } } +.. deprecated:: 7.4 + + The ``getXsdValidationBasePath()`` method, together with XML support, is + deprecated since Symfony 7.4 and will be removed in Symfony 8.0. + + If your bundle needs to remain compatible with older Symfony versions that + still support XML, keep this method and add the ``@deprecated`` annotation to it. + 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``: