diff options
Diffstat (limited to 'php-hoa-xyl-autoload.php')
-rw-r--r-- | php-hoa-xyl-autoload.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/php-hoa-xyl-autoload.php b/php-hoa-xyl-autoload.php new file mode 100644 index 0000000..56921db --- /dev/null +++ b/php-hoa-xyl-autoload.php @@ -0,0 +1,27 @@ +<?php +/* Autoloader for hoa/xyl and its dependencies */ + +$vendor = '/usr/share/php'; + +// Dependencies +foreach ([ + $vendor . '/Hoa/Consistency/autoload.php' => true, + $vendor . '/Hoa/Event/autoload.php' => true, + $vendor . '/Hoa/Exception/autoload.php' => true, + $vendor . '/Hoa/File/autoload.php' => true, + $vendor . '/Hoa/Http/autoload.php' => true, + $vendor . '/Hoa/Locale/autoload.php' => true, + $vendor . '/Hoa/Praspel/autoload.php' => true, + $vendor . '/Hoa/Protocol/autoload.php' => true, + $vendor . '/Hoa/Realdom/autoload.php' => true, + $vendor . '/Hoa/Router/autoload.php' => true, + $vendor . '/Hoa/Stringbuffer/autoload.php' => true, + $vendor . '/Hoa/View/autoload.php' => true, + $vendor . '/Hoa/Xml/autoload.php' => true, + $vendor . '/Hoa/Zformat/autoload.php' => true, + ] as $dep => $mandatory) { + if ($mandatory || file_exists($dep)) require_once($dep); +} + +$fedoraHoaLoader->addNamespace('Hoa\\Xyl\\', __DIR__, true); + |