From 278834effbfc977bc7dfa545b20fb12184afd4ce Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 6 Apr 2016 17:02:14 +0200 Subject: php-hoa-compiler: wip --- php-hoa-compiler-autoload.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 php-hoa-compiler-autoload.php (limited to 'php-hoa-compiler-autoload.php') diff --git a/php-hoa-compiler-autoload.php b/php-hoa-compiler-autoload.php new file mode 100644 index 0000000..9fafec9 --- /dev/null +++ b/php-hoa-compiler-autoload.php @@ -0,0 +1,21 @@ + true, + $vendor . '/Hoa/Exception/autoload.php' => true, + $vendor . '/Hoa/File/autoload.php' => true, + $vendor . '/Hoa/Iterator/autoload.php' => true, + $vendor . '/Hoa/Math/autoload.php' => true, + $vendor . '/Hoa/Protocol/autoload.php' => true, + $vendor . '/Hoa/Regex/autoload.php' => true, + $vendor . '/Hoa/Visitor/autoload.php' => true, + ] as $dep => $mandatory) { + if ($mandatory || file_exists($dep)) require_once($dep); +} + +$fedoraHoaLoader->addNamespace('Hoa\\Compiler\\', __DIR__, true); + -- cgit