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