Added KH 3.3.0
This commit is contained in:
39
includes/kohana/vendor/composer/autoload_real.php
vendored
Normal file
39
includes/kohana/vendor/composer/autoload_real.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
// autoload_real.php generated by Composer
|
||||
|
||||
require __DIR__ . '/ClassLoader.php';
|
||||
|
||||
class ComposerAutoloaderInit
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
public static function getLoader()
|
||||
{
|
||||
if (null !== static::$loader) {
|
||||
return static::$loader;
|
||||
}
|
||||
|
||||
static::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
$includePaths = require __DIR__ . '/include_paths.php';
|
||||
array_push($includePaths, get_include_path());
|
||||
set_include_path(join(PATH_SEPARATOR, $includePaths));
|
||||
|
||||
$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();
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user