diff options
author | Remi Collet <remi@remirepo.net> | 2020-12-08 13:59:44 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-12-08 13:59:44 +0100 |
commit | aba46d2e244a47d4f41af73c6158c2b8e31ff148 (patch) | |
tree | dae33b8cb36b73f16753a968b07e7a2288876c83 /php-doctrine-dbal.spec | |
parent | 00cfc3ba900cb9f42558617b620122451272cf70 (diff) |
don't register autoloader twice, e.g. by doctrine/dbal v3
Diffstat (limited to 'php-doctrine-dbal.spec')
-rw-r--r-- | php-doctrine-dbal.spec | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/php-doctrine-dbal.spec b/php-doctrine-dbal.spec index 5d93176..3312da1 100644 --- a/php-doctrine-dbal.spec +++ b/php-doctrine-dbal.spec @@ -38,7 +38,7 @@ Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 1%{?github_release}%{?dist} +Release: 2%{?github_release}%{?dist} Summary: Doctrine Database Abstraction Layer (DBAL) License: MIT @@ -158,7 +158,9 @@ cat <<'AUTOLOAD' | tee lib/Doctrine/DBAL/autoload.php */ require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; -\Fedora\Autoloader\Autoload::addPsr4('Doctrine\\DBAL\\', __DIR__); +if (!class_exists('Doctrine\\DBAL\\Connection')) { + \Fedora\Autoloader\Autoload::addPsr4('Doctrine\\DBAL\\', __DIR__); +} \Fedora\Autoloader\Dependencies::required(array( '%{phpdir}/Doctrine/Common/Cache/autoload.php', @@ -220,6 +222,9 @@ exit $RETURN_CODE %changelog +* Tue Dec 8 2020 Remi Collet <remi@remirepo.net> - 2.12.1-2 +- don't register autoloader twice, e.g. by doctrine/dbal v3 + * Mon Nov 16 2020 Remi Collet <remi@remirepo.net> - 2.12.1-1 - update to 2.12.1 |