summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zend-loader-autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'php-zendframework-zend-loader-autoload.php')
-rw-r--r--php-zendframework-zend-loader-autoload.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/php-zendframework-zend-loader-autoload.php b/php-zendframework-zend-loader-autoload.php
index e5b7d43..e69359d 100644
--- a/php-zendframework-zend-loader-autoload.php
+++ b/php-zendframework-zend-loader-autoload.php
@@ -24,4 +24,13 @@ if (defined('RPM_BUILDROOT')) {
foreach(glob(__DIR__ . '/*-autoload.php') as $dep) {
require_once $dep;
}
+// Common optional dependencies
+foreach ([
+ '/usr/share/php/Psr/Http/Message/autoload.php',
+ '/usr/share/php/Interop/Container/autoload.php',
+] as $dep) {
+ if (file_exists($dep)) {
+ require_once($dep);
+ }
+}