diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-04-06 13:23:12 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-04-06 13:23:12 +0200 |
commit | 364619cfb27b88502eda487542a3466e6d60d706 (patch) | |
tree | a1f6480d87ef785a89cb4c585f4962e57c2f72df /php-hoa-ustring-autoload.php |
php-hoa-ustring: wip
Diffstat (limited to 'php-hoa-ustring-autoload.php')
-rw-r--r-- | php-hoa-ustring-autoload.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/php-hoa-ustring-autoload.php b/php-hoa-ustring-autoload.php new file mode 100644 index 0000000..63f9df7 --- /dev/null +++ b/php-hoa-ustring-autoload.php @@ -0,0 +1,15 @@ +<?php +/* Autoloader for hoa/ustring 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\\Ustring\\', __DIR__, true); + |