summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-zendframework-zend-loader-autoload.php12
-rw-r--r--php-zendframework-zend-loader.spec7
2 files changed, 17 insertions, 2 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;
+}
+
diff --git a/php-zendframework-zend-loader.spec b/php-zendframework-zend-loader.spec
index 8ca8d2c..a9ad0f8 100644
--- a/php-zendframework-zend-loader.spec
+++ b/php-zendframework-zend-loader.spec
@@ -16,7 +16,7 @@
Name: php-%{gh_owner}-%{gh_project}
Version: 2.5.1
-Release: 1%{?dist}
+Release: 3%{?dist}
Summary: Zend Framework %{library} component
Group: Development/Libraries
@@ -96,5 +96,8 @@ rm -rf %{buildroot}
%changelog
+* Mon May 2 2016 Remi Collet <remi@fedoraproject.org> - 2.5.1-3
+- load dependencies out of Zend namespaces
+
* Tue Aug 4 2015 Remi Collet <remi@fedoraproject.org> - 2.5.1-1
-- initial package \ No newline at end of file
+- initial package