summaryrefslogtreecommitdiffstats
path: root/php-hoa-view-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-06 14:18:05 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-06 14:18:05 +0200
commitd350735c9e3a639b162d9d20496bd8579036ae1e (patch)
tree0924e088721bdc9bbc3656258ca2621e6d77c93b /php-hoa-view-autoload.php
php-hoa-view: wip
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);
+