Skip to content

Commit 3190cd3

Browse files
committed
feature #21455 [DependencyInjection] Deprecate getNamespace() and getXsdValidationBasePath() methods (javiereguiluz)
This PR was merged into the 7.4 branch. Discussion ---------- [DependencyInjection] Deprecate `getNamespace()` and `getXsdValidationBasePath()` methods Fixes #21454. Most of the changes will be needed in 8.0 branch, where we'll have to keep some of the existing doc and mention that it's deprecated (but still can be used to support old Symfony versions). But, we won't do that when upmerging this PR. We take care of `.. deprecated` directives separately when working on 8.0 branch. Commits ------- 745b07b [DependencyInjection] Deprecate getNamespace() and getXsdValidationBasePath() methods
2 parents 74da2b4 + 745b07b commit 3190cd3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

bundles/configuration.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,14 @@ the extension. You might want to change this to a more professional URL::
477477
}
478478
}
479479

480+
.. deprecated:: 7.4
481+
482+
The ``getNamespace()`` method, together with XML support, is deprecated
483+
since Symfony 7.4 and will be removed in Symfony 8.0.
484+
485+
If your bundle needs to remain compatible with older Symfony versions that
486+
still support XML, keep this method and add the ``@deprecated`` annotation to it.
487+
480488
Providing an XML Schema
481489
~~~~~~~~~~~~~~~~~~~~~~~
482490

@@ -510,6 +518,14 @@ can place it anywhere you like. You should return this path as the base path::
510518
}
511519
}
512520

521+
.. deprecated:: 7.4
522+
523+
The ``getXsdValidationBasePath()`` method, together with XML support, is
524+
deprecated since Symfony 7.4 and will be removed in Symfony 8.0.
525+
526+
If your bundle needs to remain compatible with older Symfony versions that
527+
still support XML, keep this method and add the ``@deprecated`` annotation to it.
528+
513529
Assuming the XSD file is called ``hello-1.0.xsd``, the schema location will be
514530
``https://acme_company.com/schema/dic/hello/hello-1.0.xsd``:
515531

0 commit comments

Comments
 (0)