UniversalClassLoader deprecated

UniversalClassLoader deprecated

class UniversalClassLoader

deprecated

since version 2.4, to be removed in 3.0. Use the {@link ClassLoader} class instead.

UniversalClassLoader implements a "universal" autoloader for PHP 5.3.

It is able to load classes that use either:

  • The technical interoperability standards for PHP 5.3 namespaces and class names (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md);

  • The PEAR naming convention for classes (http://pear.php.net/).

Classes from a sub-namespace or a sub-hierarchy of PEAR classes can be looked for in a list of locations to ease the vendoring of a sub-set of classes for large projects.

Example usage:

登录查看完整内容