From f519456c16fb4bfdf99841977dfefdc71db824bd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 2 Jul 2016 11:55:14 +0200 Subject: php-zendframework-zend-loader: load container-interop and psr/http-message when present --- php-zendframework-zend-loader-autoload.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'php-zendframework-zend-loader-autoload.php') 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); + } +} -- cgit