summaryrefslogtreecommitdiffstats
path: root/php-hoa-xml-autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'php-hoa-xml-autoload.php')
-rw-r--r--php-hoa-xml-autoload.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/php-hoa-xml-autoload.php b/php-hoa-xml-autoload.php
new file mode 100644
index 0000000..1562fe0
--- /dev/null
+++ b/php-hoa-xml-autoload.php
@@ -0,0 +1,19 @@
+<?php
+/* Autoloader for hoa/xml and its dependencies */
+
+$vendor = '/usr/share/php';
+
+// Dependencies
+foreach ([
+ $vendor . '/Hoa/Consistency/autoload.php' => true,
+ $vendor . '/Hoa/Compiler/autoload.php' => true,
+ $vendor . '/Hoa/Exception/autoload.php' => true,
+ $vendor . '/Hoa/File/autoload.php' => true,
+ $vendor . '/Hoa/Stream/autoload.php' => true,
+ $vendor . '/Hoa/Stringbuffer/autoload.php' => true,
+ ] as $dep => $mandatory) {
+ if ($mandatory || file_exists($dep)) require_once($dep);
+}
+
+$fedoraHoaLoader->addNamespace('Hoa\\Xml\\', __DIR__, true);
+