From 7212e7a23961c77170426ff7f84602f534a74670 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 28 Oct 2016 16:04:00 +0200 Subject: php-solarium: 3.7.0 --- php-solarium-autoload.php | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'php-solarium-autoload.php') diff --git a/php-solarium-autoload.php b/php-solarium-autoload.php index b5fede0..f3c802d 100644 --- a/php-solarium-autoload.php +++ b/php-solarium-autoload.php @@ -1,22 +1,13 @@ register(); -} +\Fedora\Autoloader\Autoload::addPsr4('Solarium\\', __DIR__); +\Fedora\Autoloader\Dependencies::required(array( + array( + '/usr/share/php/Symfony/Component/autoload.php', + '/usr/share/php/Symfony/autoload.php', + ), +)); -$fedoraClassLoader->addPrefix('Solarium\\', dirname(__DIR__)); - -// dependencies -if (file_exists($vendorDir . '/Symfony/Component/autoload.php')) { - require_once $vendorDir . '/Symfony/Component/autoload.php'; -} else { - $fedoraClassLoader->addPrefix('Symfony\\Component\\', $vendorDir); -} -- cgit