diff options
Diffstat (limited to 'autoload.php.in')
-rw-r--r-- | autoload.php.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/autoload.php.in b/autoload.php.in new file mode 100644 index 0000000..b3c9b67 --- /dev/null +++ b/autoload.php.in @@ -0,0 +1,35 @@ +<?php +/* Inspipred from Autoload from version 1.1 */ + +$vendorDir = '/usr/share/php'; +require_once $vendorDir . '/TheSeer/fDOMDocument/autoload.php'; +require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php'; +use Symfony\Component\ClassLoader\UniversalClassLoader; + +$loader = new UniversalClassLoader(); +$loader->registerNamespaces(array( + 'Symfony\\Component\\Finder' => $vendorDir, + 'Symfony\\Component\\ClassLoader' => $vendorDir, +)); +$loader->register(); + +// @codingStandardsIgnoreFile +// @codeCoverageIgnoreStart +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]; + } + } +); +// @codeCoverageIgnoreEnd |