From 16b7585fb1b433f89576dd0cd39e0e0e556d6d3a Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 19 Apr 2017 09:21:17 +0200 Subject: [PATCH] Added a note about deprecating addClassesToCompile() --- bundles/extension.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bundles/extension.rst b/bundles/extension.rst index da6381ac9cb..407831e6710 100644 --- a/bundles/extension.rst +++ b/bundles/extension.rst @@ -129,11 +129,9 @@ read more about it, see the ":doc:`/bundles/configuration`" article. Adding Classes to Compile ------------------------- -.. note:: - - The ``addClassesToCompile()`` method was deprecated in Symfony 3.3, and will - be removed in Symfony 4.0. If you want to use this method and be compatible - with Symfony 4.0, check to see if the method exists before calling it. +.. versionadded:: 3.3 + This technique is discouraged and the ``addClassesToCompile()`` method was + deprecated in Symfony 3.3 because modern PHP versions make it unnecessary. Symfony creates a big ``classes.php`` file in the cache directory to aggregate the contents of the PHP classes that are used in every request. This reduces the