8000 minor #7819 Added a note about deprecating addClassesToCompile() (jav… · symfony/symfony-docs@55c462e · GitHub
[go: up one dir, main page]

Skip to content

Commit 55c462e

Browse files
committed
minor #7819 Added a note about deprecating addClassesToCompile() (javiereguiluz)
This PR was submitted for the master branch but it was merged into the 3.3 branch instead (closes #7819). Discussion ---------- Added a note about deprecating addClassesToCompile() This fixes #7815. Commits ------- 81450f6 Added a note about deprecating addClassesToCompile()
2 parents 6e523f7 + 81450f6 commit 55c462e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bundles/extension.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,9 @@ read more about it, see the ":doc:`/bundles/configuration`" article.
129129
Adding Classes to Compile
130130
-------------------------
131131

132-
.. note::
133-
134-
The ``addClassesToCompile()`` method was deprecated in Symfony 3.3, and will
135-
be removed in Symfony 4.0. If you want to use this method and be compatible
136-
with Symfony 4.0, check to see if the method exists before calling it.
132+
.. versionadded:: 3.3
133+
This technique is discouraged and the ``addClassesToCompile()`` method was
134+
deprecated in Symfony 3.3 because modern PHP versions make it unnecessary.
137135

138136
Symfony creates a big ``classes.php`` file in the cache directory to aggregate
139137
the contents of the PHP classes that are used in every request. This reduces the

0 commit comments

Comments
 (0)
0