summaryrefslogtreecommitdiffstats
path: root/php-hoa-xyl-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-09 10:58:35 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-09 10:58:35 +0200
commit31c57e84c10550a2f545c6229be7186ada298b5c (patch)
treed632ad6a4420eeb12788c158c3eb36f180feb6d1 /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.php27
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);
+