Skip to content

Commit afbce94

Browse files
committed
Added a note about deprecating addClassesToCompile()
1 parent 2b1dbee commit afbce94

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bundles/extension.rst

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

132+
.. versionadded:: 3.3
133+
This technique is discouraged and the ``addClassesToCompile()`` has been
134+
deprecated starting from Symfony 3.3, because modern PHP versions make it
135+
unnecessary.
136+
132137
Symfony creates a big ``classes.php`` file in the cache directory to aggregate
133138
the contents of the PHP classes that are used in every request. This reduces the
134139
I/O operations and increases the application performance.

0 commit comments

Comments
 (0)