Skip to content

Commit 745b07b

Browse files
committed
[DependencyInjection] Deprecate getNamespace() and getXsdValidationBasePath() methods
1 parent 4a96973 commit 745b07b

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)