Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions components/class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last sentence sounds a bit vague. Shouldn't we just omit it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reworded it ... because the component is deprecated as of symfony/symfony#21353


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
Expand Down