Skip to content

Commit

Permalink
feature #3972 Added PSR-4 to Class Loaders list (dosten)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.5 branch.

Discussion
----------

Added PSR-4 to Class Loaders list

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | yes
| Applies to    | 2.5+
| Fixed tickets | none

Commits
-------

d1c95ce Added PSR-4 ClassLoader to list
  • Loading branch information
weaverryan committed Jul 1, 2014
2 parents f34eaed + d1c95ce commit 2b2d9d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/class_loader/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ 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 defining
the class. Symfony2 provides two autoloaders, which are able to load your classes:
the class. Symfony2 provides three autoloaders, which are able to load your classes:

* :doc:`/components/class_loader/class_loader`: loads classes that follow
the `PSR-0` class naming standard;

* :doc:`/components/class_loader/psr4_class_loader`: loads classes that follow
the `PSR-4` class naming standard;

* :doc:`/components/class_loader/map_class_loader`: loads classes using
a static map from class name to file path.

Expand Down

0 comments on commit 2b2d9d3

Please sign in to comment.