mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 02:18:58 +01:00
0e31a46161
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
45 lines
1.2 KiB
PHP
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;
|
|
}
|
|
}
|