2012-06-11 12:15:08 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// autoload.php generated by Composer
|
|
|
|
if (!class_exists('Composer\\Autoload\\ClassLoader', false)) {
|
|
|
|
require __DIR__ . '/composer' . '/ClassLoader.php';
|
|
|
|
}
|
|
|
|
|
2012-07-31 16:58:33 +00:00
|
|
|
if (!class_exists('ComposerAutoloaderInitFilesAutoload', false)) {
|
|
|
|
class ComposerAutoloaderInitFilesAutoload
|
|
|
|
{
|
|
|
|
public static function getLoader()
|
|
|
|
{
|
|
|
|
$loader = new \Composer\Autoload\ClassLoader();
|
|
|
|
$composerDir = __DIR__ . '/composer';
|
2012-06-11 12:15:08 +00:00
|
|
|
|
2012-07-31 16:58:33 +00:00
|
|
|
$map = require $composerDir . '/autoload_namespaces.php';
|
|
|
|
foreach ($map as $namespace => $path) {
|
|
|
|
$loader->add($namespace, $path);
|
|
|
|
}
|
2012-06-11 12:15:08 +00:00
|
|
|
|
2012-07-31 16:58:33 +00:00
|
|
|
$classMap = require $composerDir . '/autoload_classmap.php';
|
|
|
|
if ($classMap) {
|
|
|
|
$loader->addClassMap($classMap);
|
|
|
|
}
|
|
|
|
|
|
|
|
$loader->register();
|
2012-06-11 12:15:08 +00:00
|
|
|
|
2012-07-31 16:58:33 +00:00
|
|
|
require $vendorDir . '/a/a/test.php';
|
|
|
|
require $vendorDir . '/b/b/test2.php';
|
2012-06-11 12:15:08 +00:00
|
|
|
|
2012-07-31 16:58:33 +00:00
|
|
|
return $loader;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-06-25 09:39:51 +00:00
|
|
|
|
2012-07-31 16:58:33 +00:00
|
|
|
return ComposerAutoloaderInitFilesAutoload::getLoader();
|