diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-04-06 11:05:34 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-04-06 11:05:34 +0200 |
commit | eb8c497397a01fff8ed6ac81b19b30863fb4ace3 (patch) | |
tree | 89e9faf8656cd1320cb6cdf9641a515776e90c66 /php-hoa-stream-autoload.php |
php-hoa-stream: wip
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); + |