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