<?php

// autoload_real_52.php generated by xrstf/composer-php52
if ( !class_exists ('ComposerAutoloaderInitdc2feb09422541020a75a34eeac8ae2a', false ) ) {
    class ComposerAutoloaderInitdc2feb09422541020a75a34eeac8ae2a {
        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('ComposerAutoloaderInitdc2feb09422541020a75a34eeac8ae2a', 'loadClassLoader'), true /*, true */);
            self::$loader = $loader = new xrstf_Composer52_ClassLoader();
            spl_autoload_unregister(array('ComposerAutoloaderInitdc2feb09422541020a75a34eeac8ae2a', '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 . '/react/promise/src/functions_include.php'; // disabled because of PHP 5.3 syntax

            return $loader;
        }
    }
}
