diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-04-09 10:58:35 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-04-09 10:58:35 +0200 |
commit | 31c57e84c10550a2f545c6229be7186ada298b5c (patch) | |
tree | d632ad6a4420eeb12788c158c3eb36f180feb6d1 /php-hoa-xyl-autoload.php |
php-hoa-xyl: 1.16.01.15 (new package, wip)
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); + |