Add missing autoload calls
Until either php 7.4 or doctrine/persistence 2 is required, these will be needed to make sure php recognises signatures using the old names as compatible with signatures using the new names. This is necessary for types defined outside Symfony that extend types from Symfony and still use the old names in signatures of methods they override. More details at https://dev.to/greg0ire/how-to-deprecate-a-type-in-php-48cf Fixes https://github.com/doctrine/DoctrineMongoDBBundle/issues/616
This commit is contained in:
parent
7a6e3c07b3
commit
94b5dbde5a
@ -282,3 +282,5 @@ abstract class DoctrineType extends AbstractType implements ResetInterface
|
|||||||
$this->choiceLoaders = [];
|
$this->choiceLoaders = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface_exists(ObjectManager::class);
|
||||||
|
@ -97,3 +97,5 @@ class EntityType extends DoctrineType
|
|||||||
return [$parameter->getName(), $parameter->getType(), $parameter->getValue()];
|
return [$parameter->getName(), $parameter->getType(), $parameter->getValue()];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface_exists(ObjectManager::class);
|
||||||
|
@ -153,3 +153,6 @@ class EntityUserProvider implements UserProviderInterface, PasswordUpgraderInter
|
|||||||
return $this->getObjectManager()->getClassMetadata($this->classOrAlias);
|
return $this->getObjectManager()->getClassMetadata($this->classOrAlias);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface_exists(ObjectManager::class);
|
||||||
|
interface_exists(ObjectRepository::class);
|
||||||
|
Reference in New Issue
Block a user