Skip to content

Commit

Permalink
Trigger autoload on detecting doctrine/mongodb-odm version (#173)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
clemherreman authored and markitosgv committed Oct 15, 2019
1 parent 04db09a commit 474320e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Document/RefreshTokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 474320e

Please sign in to comment.