summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zend-loader-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-05-02 07:43:31 +0200
committerRemi Collet <fedora@famillecollet.com>2016-05-02 07:43:31 +0200
commit594416d4c05d25e0803ea6cd028eec416cc5733b (patch)
treec67476196a5779abe40fb22510b2894a8dff6d1b /php-zendframework-zend-loader-autoload.php
parent6787dd34694c2c27de90d5b320472fa40fe3dd3a (diff)
php-zendframework-zend-loader: more autoloaders
Diffstat (limited to 'php-zendframework-zend-loader-autoload.php')
-rw-r--r--php-zendframework-zend-loader-autoload.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-zendframework-zend-loader-autoload.php b/php-zendframework-zend-loader-autoload.php
index 659144a..e5b7d43 100644
--- a/php-zendframework-zend-loader-autoload.php
+++ b/php-zendframework-zend-loader-autoload.php
@@ -13,3 +13,15 @@ Zend\Loader\AutoloaderFactory::factory(array(
'autoregister_zf' => true
)
));
+
+// Dependencies during build
+if (defined('RPM_BUILDROOT')) {
+ foreach(glob(RPM_BUILDROOT . '/*-autoload.php') as $dep) {
+ require_once $dep;
+ }
+}
+// Dependencies outside Zend namespace
+foreach(glob(__DIR__ . '/*-autoload.php') as $dep) {
+ require_once $dep;
+}
+