File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66use Doctrine \DBAL \Connection ;
77use Doctrine \DBAL \DBALException ;
88use Doctrine \DBAL \Exception \InvalidArgumentException ;
9- use Doctrine \ORM \EntityManager as DoctrineEntityManager ;
9+ use Doctrine \ORM \EntityManagerInterface ;
1010use Neos \Flow \Annotations as Flow ;
1111use Neos \Flow \Security \Account ;
1212use PragmaRX \Google2FA \Exceptions \IncompatibleWithGoogleAuthenticatorException ;
@@ -52,11 +52,8 @@ public function initializeObject(): void
5252 $ this ->google2FA = new Google2FA ();
5353 }
5454
55- public function injectEntityManager (DoctrineObjectManager $ entityManager ): void
55+ public function injectEntityManager (EntityManagerInterface $ entityManager ): void
5656 {
57- if (!$ entityManager instanceof DoctrineEntityManager) {
58- throw new \RuntimeException ('Invalid EntityManager configured ' , 1550662984 );
59- }
6057 $ this ->dbal = $ entityManager ->getConnection ();
6158 }
6259
You can’t perform that action at this time.
0 commit comments