blob: bc903fc69177efc01965bcd3591497c94e22982f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
/* inspired from autoload from version 1.2.1 */
$phpdir = '/usr/share/php';
require_once $phpdir.'/Text/Template/Autoload.php';
require_once $phpdir.'/SebastianBergmann/Version/autoload.php';
require_once $phpdir.'/Symfony/Component/ClassLoader/UniversalClassLoader.php';
$loader = new Symfony\Component\ClassLoader\UniversalClassLoader();
$loader->registerNamespaces(array(
'Symfony\\Component\\Console' => $phpdir,
'Symfony\\Component\\ClassLoader' => $phpdir,
'org\\bovigo\\vfs' => $phpdir,
));
$loader->register();
spl_autoload_register(
function($class) {
static $classes = null;
if ($classes === null) {
$classes = array(
___CLASSLIST___
);
}
$cn = strtolower($class);
if (isset($classes[$cn])) {
require ___BASEDIR___$classes[$cn];
}
}
);
|