mailgun-php/vendor/composer/autoload_real.php

48 lines
1.4 KiB
PHP
Raw Normal View History

2013-07-18 07:26:09 +04:00
<?php
// autoload_real.php generated by Composer
2013-07-18 21:59:36 +04:00
class ComposerAutoloaderInit0397b86fbbf8902d18a30c6f441f7f8b
2013-07-18 07:26:09 +04:00
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}
2013-07-18 21:59:36 +04:00
spl_autoload_register(array('ComposerAutoloaderInit0397b86fbbf8902d18a30c6f441f7f8b', 'loadClassLoader'), true, true);
2013-07-18 07:26:09 +04:00
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
2013-07-18 21:59:36 +04:00
spl_autoload_unregister(array('ComposerAutoloaderInit0397b86fbbf8902d18a30c6f441f7f8b', 'loadClassLoader'));
2013-07-18 07:26:09 +04:00
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
2013-07-18 21:59:36 +04:00
$includePaths = require __DIR__ . '/include_paths.php';
array_push($includePaths, get_include_path());
set_include_path(join(PATH_SEPARATOR, $includePaths));
2013-07-18 07:26:09 +04:00
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
$loader->register(true);
return $loader;
}
}