summaryrefslogtreecommitdiffstats
path: root/php-hoa-realdom-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-08 14:28:06 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-08 14:28:06 +0200
commit77ba44ca152dcca08ae4d3753e0e52bcea67e984 (patch)
tree20e796921b0e772e398dfefe5e64d2c6618ecf52 /php-hoa-realdom-autoload.php
php-hoa-realdom: 1.16.01.15 (new package, wip)
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);
+