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