From be77ea1836758a32f030f3947adc6442ec465ec2 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 18 Jan 2017 11:20:00 +0100 Subject: [PATCH 1/3] Added a note about not using the ClassLoader component --- components/class_loader.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/class_loader.rst b/components/class_loader.rst index 6fc6fad156e..9d26311c2a4 100644 --- a/components/class_loader.rst +++ b/components/class_loader.rst @@ -10,6 +10,12 @@ The ClassLoader Component Usage ----- +.. caution:: + + If your application uses Composer's class loading mechanism and PHP 7 caching + features, there's no need to use this component to load classes. That's why + this component may be deprecated anytime soon. + Whenever you reference a class that has not been required or included yet, PHP uses the `autoloading mechanism`_ to delegate the loading of a file defining the class. Symfony provides three autoloaders, which are able to From b97d7f5081c50803b9546cd9398d21773813ba96 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 20 Jan 2017 16:07:14 +0100 Subject: [PATCH 2/3] Reword because the component is now deprecated --- components/class_loader.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/components/class_loader.rst b/components/class_loader.rst index 9d26311c2a4..ae70a60b4d2 100644 --- a/components/class_loader.rst +++ b/components/class_loader.rst @@ -7,14 +7,13 @@ The ClassLoader Component The ClassLoader component provides tools to autoload your classes and cache their locations for performance. -Usage ------ - .. caution:: - If your application uses Composer's class loading mechanism and PHP 7 caching - features, there's no need to use this component to load classes. That's why - this component may be deprecated anytime soon. + The ClassLoader component was deprecated in Symfony 3.3 and it will be + removed in 4.0. Alternatively, use the Composer's class loading mechanism. + +Usage +----- Whenever you reference a class that has not been required or included yet, PHP uses the `autoloading mechanism`_ to delegate the loading of a file From a2fa0fbda3aa7a33e558d803390a5f3ff05a11ab Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 20 Jan 2017 16:36:55 +0100 Subject: [PATCH 3/3] Fixed a grammar issue --- components/class_loader.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/class_loader.rst b/components/class_loader.rst index ae70a60b4d2..3f6ccc095b3 100644 --- a/components/class_loader.rst +++ b/components/class_loader.rst @@ -10,7 +10,7 @@ The ClassLoader Component .. caution:: The ClassLoader component was deprecated in Symfony 3.3 and it will be - removed in 4.0. Alternatively, use the Composer's class loading mechanism. + removed in 4.0. Alternatively, use Composer's class loading mechanism. Usage -----