GitXplorerGitXplorer
n

UniversalClassLoader

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
4ce20d19ad8e8ad407399d9ec2400f1daca63fba

Removed unnecessairy directories. & fix for README

nnathan-gs committed 14 years ago
Unverified
6a877ed5fe172b45722a3c1b83aa428385e65a69

Added a Credits to README

nnathan-gs committed 14 years ago
Unverified
bf3610ad5dfb7eff9b6bd09c05e41402fd4e38a8

FIX: README

nnathan-gs committed 14 years ago
Unverified
ad4c5625885e940cec31fb87d1037838ac5de6ad

Merge branch 'release/0.1'

nnathan-gs committed 14 years ago
Unverified
79e2e077bbe0e8932f0ca520ebadecc79568a0d4

Added a README

nnathan-gs committed 14 years ago
Unverified
7202836260abb00063f4bbdbc5dde6cbbca9d860

Imported UniversalClassLoader from the Symfony2 Project.

nnathan-gs committed 14 years ago

README

The README file for this repository.

UniversalClassLoader implements a "universal" autoloader for PHP 5.3. It is able to load classes that use either:

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:

$loader = new UniversalClassLoader();

// register classes with namespaces
$loader->registerNamespaces(array(
    'Symfony\Component' => __DIR__.'/component',
    'Symfony' => __DIR__.'/framework',
));

// register a library using the PEAR naming convention
$loader->registerPrefixes(array(
    'Swift_' => __DIR__.'/Swift',
));

// activate the autoloader
$loader->register();

In this example, if you try to use a class in the Symfony\Component namespace or one of its children (Symfony\Component\Console for instance), the autoloader will first look for the class under the component/ directory, and it will then fallback to the framework/ directory if not found before giving up.

###Credits This UniversalClassLoader is a copy of The Symfony2 UniversalClassLoader. It's made & opensourced by Fabien Potencier of Sensio Labs for the Symfony2 Framework, the original can be found on the Symfony2 github page.