diff options
Diffstat (limited to 'autoload.php.in')
-rw-r--r-- | autoload.php.in | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/autoload.php.in b/autoload.php.in deleted file mode 100644 index 0bd43af..0000000 --- a/autoload.php.in +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/* Autoloader for phploc/phploc and its dependencies */ - -$vendorDir = '/usr/share/php'; -require_once $vendorDir . '/SebastianBergmann/FinderFacade/autoload.php'; -require_once $vendorDir . '/SebastianBergmann/Git/autoload.php'; -require_once $vendorDir . '/SebastianBergmann/Version/autoload.php'; - -require_once $vendorDir . '/TheSeer/fDOMDocument/autoload.php'; -// Use Symfony autoloader -if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) { - if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) { - require_once $vendorDir . '/Symfony/Component/ClassLoader/ClassLoader.php'; - } - - $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader(); - $fedoraClassLoader->register(); -} - -/* For symfony/console */ -$fedoraClassLoader->addPrefix('Symfony\\Component\\', $vendorDir); - -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]; - } - } -); |