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