From 474320ee4d77f0b95baeb10317f425f4eb438c67 Mon Sep 17 00:00:00 2001 From: Clement Herreman Date: Tue, 15 Oct 2019 12:36:23 +0200 Subject: [PATCH] Trigger autoload on detecting doctrine/mongodb-odm version (#173) This allows the auload to be triggered, when checking for the presence of a `doctrine/mongodb-odm >= 2.0` repository class. This is needed as during `bin/console cache:warmup`, the check would fail even if the checked class is indeed present, at the class was not autoloaded. --- Document/RefreshTokenRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document/RefreshTokenRepository.php b/Document/RefreshTokenRepository.php index 7d15c037..091dcba1 100644 --- a/Document/RefreshTokenRepository.php +++ b/Document/RefreshTokenRepository.php @@ -6,7 +6,7 @@ use Doctrine\ODM\MongoDB\Repository\DocumentRepository as MongoDBDocumentRepository; use Gesdinet\JWTRefreshTokenBundle\Service\RefreshToken; -if (class_exists(MongoDBDocumentRepository::class, false)) { +if (class_exists(MongoDBDocumentRepository::class)) { // Support for doctrine/mongodb-odm >= 2.0 class BaseRepository extends MongoDBDocumentRepository {