diff options
Diffstat (limited to 'autoload.php.in')
-rw-r--r-- | autoload.php.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/autoload.php.in b/autoload.php.in new file mode 100644 index 0000000..52a3f0c --- /dev/null +++ b/autoload.php.in @@ -0,0 +1,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]; + } + } +); |