From 3f2e560f38a9e87db8fd037f5118f425bbe1a000 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 6 Apr 2016 13:09:29 +0200 Subject: php-hoa-file: wip --- php-hoa-file-autoload.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 php-hoa-file-autoload.php (limited to 'php-hoa-file-autoload.php') diff --git a/php-hoa-file-autoload.php b/php-hoa-file-autoload.php new file mode 100644 index 0000000..7b15e41 --- /dev/null +++ b/php-hoa-file-autoload.php @@ -0,0 +1,18 @@ + true, + $vendor . '/Hoa/Event/autoload.php' => true, + $vendor . '/Hoa/Exception/autoload.php' => true, + $vendor . '/Hoa/Stream/autoload.php' => true, + $vendor . '/Hoa/Iterator/autoload.php' => true, + ] as $dep => $mandatory) { + if ($mandatory || file_exists($dep)) require_once($dep); +} + +$fedoraHoaLoader->addNamespace('Hoa\\File\\', __DIR__, true); + -- cgit