summaryrefslogtreecommitdiffstats
path: root/php-hoa-stringbuffer-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-09 10:00:49 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-09 10:00:49 +0200
commitca444fc9dee702fd83b12f0ad5a8ecfde826757b (patch)
tree844c91aaab122c6c572d3b654e414c601895aef2 /php-hoa-stringbuffer-autoload.php
php-hoa-stringbuffer: 1.16.01.15 (new package,wip)
Diffstat (limited to 'php-hoa-stringbuffer-autoload.php')
-rw-r--r--php-hoa-stringbuffer-autoload.php17
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);
+