summaryrefslogtreecommitdiffstats
path: root/autoload.php.in
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-05-03 19:02:26 +0200
committerRemi Collet <fedora@famillecollet.com>2014-05-03 19:02:26 +0200
commite17c9b8c0f11d87a3b96e8bd61f2308ac9015a1c (patch)
tree74d88105ae3fe753eb804b5dde1693e6e851fc4d /autoload.php.in
parentf0d031b84187d26cf8de4d2f7bd774d83454550f (diff)
php-phpunit-phploc: 2.0.5, sources from github
Diffstat (limited to 'autoload.php.in')
-rw-r--r--autoload.php.in25
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];
+ }
+ }
+);