diff options
Diffstat (limited to 'php-hoa-http-autoload.php')
-rw-r--r-- | php-hoa-http-autoload.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/php-hoa-http-autoload.php b/php-hoa-http-autoload.php new file mode 100644 index 0000000..d89bd14 --- /dev/null +++ b/php-hoa-http-autoload.php @@ -0,0 +1,16 @@ +<?php +/* Autoloader for hoa/router and its dependencies */ + +$vendor = '/usr/share/php'; + +// Dependencies +foreach ([ + $vendor . '/Hoa/Consistency/autoload.php' => true, + $vendor . '/Hoa/Exception/autoload.php' => true, + $vendor . '/Hoa/Zformat/autoload.php' => true, + ] as $dep => $mandatory) { + if ($mandatory || file_exists($dep)) require_once($dep); +} + +$fedoraHoaLoader->addNamespace('Hoa\\Router\\', __DIR__, true); + |