diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-08-31 10:19:51 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-08-31 10:19:51 +0200 |
commit | 5e1b107645f70753dcaa78c8b8b7643a13ce8d9f (patch) | |
tree | 84fc91a2f58e37bdc2043ac350a36571b83cdfb0 /Autoload.php.in | |
parent | 36462457dc259c4eae1b00e2ca62b8518c65608e (diff) |
php-phpunit-PHP-TokenStream: 1.3.0
Diffstat (limited to 'Autoload.php.in')
-rw-r--r-- | Autoload.php.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Autoload.php.in b/Autoload.php.in new file mode 100644 index 0000000..c6d8bd4 --- /dev/null +++ b/Autoload.php.in @@ -0,0 +1,24 @@ +<?php +/* Inspipred from Autoload from version 1.2.2 */ + +spl_autoload_register( + function ($class) + { + static $classes = NULL; + static $path = NULL;; + + if ($classes === NULL) { + $classes = array( + ___CLASSLIST___ + ); + + $path = dirname(dirname(dirname(__FILE__))); + } + + $cn = strtolower($class); + + if (isset($classes[$cn])) { + require $path . $classes[$cn]; + } + } +);
\ No newline at end of file |