コード例 #1
0
 /**
  * @return xrstf_Composer52_ClassLoader
  */
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit52f18c863cfacef7cbaf78b5fc45c210', 'loadClassLoader'), true);
     self::$loader = $loader = new xrstf_Composer52_ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit52f18c863cfacef7cbaf78b5fc45c210', 'loadClassLoader'));
     $vendorDir = dirname(dirname(__FILE__));
     $baseDir = 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);
     //		require $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php'; // disabled because of PHP 5.3 syntax
     return $loader;
 }
コード例 #2
0
<?php

// autoload_52.php generated by xrstf/composer-php52
require_once dirname(__FILE__) . '/composer' . '/autoload_real_52.php';
return ComposerAutoloaderInit52f18c863cfacef7cbaf78b5fc45c210::getLoader();