diff options
Diffstat (limited to 'php-hoa-visitor-autoload.php')
-rw-r--r-- | php-hoa-visitor-autoload.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/php-hoa-visitor-autoload.php b/php-hoa-visitor-autoload.php new file mode 100644 index 0000000..c8d359c --- /dev/null +++ b/php-hoa-visitor-autoload.php @@ -0,0 +1,14 @@ +<?php +/* Autoloader for hoa/visitor 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\\Visitor\\', __DIR__, true); + |