发布于 2015-08-27 16:39:31 | 148 次阅读 | 评论: 0 | 来源: 网络整理
The ClassLoader component provides tools to autoload your classes and cache their locations for performance.
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 load your classes:
Additionally, the Symfony ClassLoader component ships with a set of wrapper classes which can be used to add additional functionality on top of existing autoloaders:
You can install the component in 2 different ways:
symfony/class-loader
on Packagist);