summaryrefslogtreecommitdiffstats
path: root/autoload.php.in
blob: 52a3f0c9a69ee5a5e17fe117f401b71e04b4f7b0 (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
<?php
/* Inspired from autoload from version 2.0.3 */

require_once 'SebastianBergmann/FinderFacade/autoload.php';
require_once 'SebastianBergmann/Git/autoload.php';
require_once 'SebastianBergmann/Version/autoload.php';
require_once 'Symfony/Component/Console/autoloader.php';

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];
        }
    }
);