diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-12-15 07:34:39 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-12-15 07:34:39 +0100 |
commit | c8f0920dc65d88e80db1e0481eb39fb31115d7c2 (patch) | |
tree | 1b154390aa0ed28cb6560192c399bd8d90311b7e /php-solarium-autoload.php | |
parent | 01f519c5fd4e8c02e6c32f9d62a71516c708acb4 (diff) |
php-solarium: fix for old symfony (epel)
Diffstat (limited to 'php-solarium-autoload.php')
-rw-r--r-- | php-solarium-autoload.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/php-solarium-autoload.php b/php-solarium-autoload.php index ad48221..b8be4e0 100644 --- a/php-solarium-autoload.php +++ b/php-solarium-autoload.php @@ -15,4 +15,8 @@ if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Compo $fedoraClassLoader->addPrefix('Solarium\\', dirname(__DIR__)); // dependencies -require_once $vendorDir . '/Symfony/Component/autoload.php'; +if (file_exists($vendorDir . '/Symfony/Component/autoload.php')) { + require_once $vendorDir . '/Symfony/Component/autoload.php'; +} else { + require_once $vendorDir . '/Symfony/autoload.php'; +} |