diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-04-08 14:13:18 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-04-08 14:13:18 +0200 |
commit | aa1f94712d19e6c90747bacd3cefb4a823d7a617 (patch) | |
tree | 95f601aa1d3300c62f6cdd32ff1bcb4145fdaff9 /php-hoa-json-autoload.php |
php-hoa-json: 2.16.01.14 (new package, wip)
Diffstat (limited to 'php-hoa-json-autoload.php')
-rw-r--r-- | php-hoa-json-autoload.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/php-hoa-json-autoload.php b/php-hoa-json-autoload.php new file mode 100644 index 0000000..1796482 --- /dev/null +++ b/php-hoa-json-autoload.php @@ -0,0 +1,15 @@ +<?php +/* Autoloader for hoa/json and its dependencies */ + +$vendor = '/usr/share/php'; + +// Dependencies +foreach ([ + $vendor . '/Hoa/Consistency/autoload.php' => true, + $vendor . '/Hoa/Exception/autoload.php' => true, + ] as $dep => $mandatory) { + if ($mandatory || file_exists($dep)) require_once($dep); +} + +$fedoraHoaLoader->addNamespace('Hoa\\Json\\', __DIR__, true); + |