1
0
Fork 0
composer/tests/Composer/Test/Autoload/Fixtures/autoload_real_functions.php

34 lines
834 B
PHP
Raw Normal View History

<?php
// autoload_realFilesAutoload.php generated by Composer
2012-08-14 16:59:36 +00:00
require __DIR__ . '/ClassLoader.php';
class ComposerAutoloaderInitFilesAutoload
{
public static function getLoader()
{
$loader = new \Composer\Autoload\ClassLoader();
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
$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();
require $baseDir . '/root.php';
require $vendorDir . '/a/a/test.php';
require $vendorDir . '/b/b/test2.php';
return $loader;
}
}