summaryrefslogtreecommitdiffstats
path: root/php-solarium-autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'php-solarium-autoload.php')
-rw-r--r--php-solarium-autoload.php6
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';
+}