diff options
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); + |