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