diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-04-08 14:46:48 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-04-08 14:46:48 +0200 |
commit | fed0ed380941ba2fd687a03b8d1f73fa3a2ac1be (patch) | |
tree | f6f8300d4de03602b423e2a64084316c1dd9b83d /php-hoa-praspel-autoload.php |
php-hoa-praspel: 1.16.01.16 (new package, wip)
Diffstat (limited to 'php-hoa-praspel-autoload.php')
-rw-r--r-- | php-hoa-praspel-autoload.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/php-hoa-praspel-autoload.php b/php-hoa-praspel-autoload.php new file mode 100644 index 0000000..a1161b3 --- /dev/null +++ b/php-hoa-praspel-autoload.php @@ -0,0 +1,22 @@ +<?php +/* Autoloader for hoa/praspel and its dependencies */ + +$vendor = '/usr/share/php'; + +// Dependencies +foreach ([ + $vendor . '/Hoa/Compiler/autoload.php' => true, + $vendor . '/Hoa/Consistency/autoload.php' => true, + $vendor . '/Hoa/Exception/autoload.php' => true, + $vendor . '/Hoa/File/autoload.php' => true, + $vendor . '/Hoa/Iterator/autoload.php' => true, + $vendor . '/Hoa/Protocol/autoload.php' => true, + $vendor . '/Hoa/Realdom/autoload.php' => true, + $vendor . '/Hoa/Ustring/autoload.php' => true, + $vendor . '/Hoa/Visitor/autoload.php' => true, + ] as $dep => $mandatory) { + if ($mandatory || file_exists($dep)) require_once($dep); +} + +$fedoraHoaLoader->addNamespace('Hoa\\Praspel\\', __DIR__, true); + |