/opt/alt/php55/usr/share/pear/Symfony/Component/ClassLoader
NameSizeModeActions
ApcClassLoader.php37550644editdlrm
ApcUniversalClassLoader.php30590644editdlrm
autoloader.php3410644editdlrm
ClassCollectionLoader.php117850644editdlrm
ClassLoader.php52500644editdlrm
ClassMapGenerator.php35380644editdlrm
DebugClassLoader.php33550644editdlrm
DebugUniversalClassLoader.php20890644editdlrm
MapClassLoader.php15330644editdlrm
UniversalClassLoader.php88050644editdlrm
WinCacheClassLoader.php38280644editdlrm
XcacheClassLoader.php34970644editdlrm
Edit: /opt/alt/php55/usr/share/pear/Symfony/Component/ClassLoader/MapClassLoader.php (1533B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\ClassLoader; /** * A class loader that uses a mapping file to look up paths. * * @author Fabien Potencier */ class MapClassLoader { private $map = array(); /** * Constructor. * * @param array $map A map where keys are classes and values the absolute file path */ public function __construct(array $map) { $this->map = $map; } /** * Registers this instance as an autoloader. * * @param Boolean $prepend Whether to prepend the autoloader or not */ public function register($prepend = false) { spl_autoload_register(array($this, 'loadClass'), true, $prepend); } /** * Loads the given class or interface. * * @param string $class The name of the class */ public function loadClass($class) { if (isset($this->map[$class])) { require $this->map[$class]; } } /** * Finds the path to the file where the class is defined. * * @param string $class The name of the class * * @return string|null The path, if found */ public function findFile($class) { if (isset($this->map[$class])) { return $this->map[$class]; } } }