WordPress/wp-vendor/composer/autoload_real_52.php
Dion Hulse 0e31a46161 Bootstrap: Revert [38399] as it's broken /build/ and subsequently core.svn.wordpress.org.
The generated classmaps reference `/src/` files and operates in the assumption that the base directory is one level above `wp-settings.php`, which it isn't after our build processes are run.

See #36335

Built from https://develop.svn.wordpress.org/trunk@38402


git-svn-id: http://core.svn.wordpress.org/trunk@38343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-27 14:37:32 +00:00

45 lines
1.2 KiB
PHP

<?php
// autoload_real_52.php generated by xrstf/composer-php52
class ComposerAutoloaderInit472dba0eaffdca839125d11fca021b8d {
private static $loader;
public static function loadClassLoader($class) {
if ('xrstf_Composer52_ClassLoader' === $class) {
require dirname(__FILE__).'/ClassLoader52.php';
}
}
/**
* @return xrstf_Composer52_ClassLoader
*/
public static function getLoader() {
if (null !== self::$loader) {
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit472dba0eaffdca839125d11fca021b8d', 'loadClassLoader'), true /*, true */);
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit472dba0eaffdca839125d11fca021b8d', 'loadClassLoader'));
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname(dirname($vendorDir));
$dir = dirname(__FILE__);
$map = require $dir.'/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->add($namespace, $path);
}
$classMap = require $dir.'/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
$loader->register(true);
return $loader;
}
}