<?php
/**
* SourceLoader example usage
*/
require 'SourceLoader.php';
frdl\webfan\Autoloading\SourceLoader::top()
-> addPsr4('frdl\\', DIRECTORY_SEPARATOR . 'pathToDir' . DIRECTORY_SEPARATOR, true)
-> addPsr0('aNamespace\\', DIRECTORY_SEPARATOR . 'pathToDir-Old' . DIRECTORY_SEPARATOR, false)
-> class_mapping_add('MyClass', DIRECTORY_SEPARATOR . 'pathToDir' . DIRECTORY_SEPARATOR .'cl.MyClass.php', $success)
-> autoload_register()
-> unregister(array(frdl\webfan\Autoloading\SourceLoader::top(),'autoloadClassFromServer'))
;
|