File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1313
1414namespace Silverback \ApiComponentsBundle \Helper \User ;
1515
16- use Doctrine \ORM \EntityManagerInterface ;
1716use Psr \Container \ContainerInterface ;
1817use Silverback \ApiComponentsBundle \Entity \User \AbstractUser ;
1918use Silverback \ApiComponentsBundle \Exception \MailerTransportException ;
@@ -50,7 +49,7 @@ public function sendPasswordResetEmail(AbstractUser $user): bool
5049
5150 if ($ email ) {
5251 $ user ->setPasswordRequestedAt (new \DateTime ());
53- $ this ->container ->get (EntityManagerInterface::class )->flush ();
52+ $ this ->container ->get (' doctrine.orm.entity_manager ' )->flush ();
5453 }
5554
5655 return $ this ->send ($ email );
@@ -62,7 +61,7 @@ public function sendChangeEmailConfirmationEmail(AbstractUser $user): bool
6261
6362 if ($ email ) {
6463 $ user ->setNewEmailAddressChangeRequestedAt (new \DateTime ());
65- $ this ->container ->get (EntityManagerInterface::class )->flush ();
64+ $ this ->container ->get (' doctrine.orm.entity_manager ' )->flush ();
6665 }
6766
6867 return $ this ->send ($ email );
@@ -74,7 +73,7 @@ public function sendEmailVerifyEmail(AbstractUser $user): bool
7473
7574 if ($ email ) {
7675 $ user ->setEmailAddressVerificationRequestedAt (new \DateTime ());
77- $ this ->container ->get (EntityManagerInterface::class )->flush ();
76+ $ this ->container ->get (' doctrine.orm.entity_manager ' )->flush ();
7877 }
7978
8079 return $ this ->send ($ email );
Original file line number Diff line number Diff line change 11921192 UsernameChangedEmailFactory::class => new Reference (UsernameChangedEmailFactory::class),
11931193 PasswordChangedEmailFactory::class => new Reference (PasswordChangedEmailFactory::class),
11941194 VerifyEmailFactory::class => new Reference (VerifyEmailFactory::class),
1195+ 'doctrine.orm.entity_manager ' => new Reference ('doctrine.orm.entity_manager ' ),
11951196 'logger ' => new Reference ('logger ' , ContainerInterface::IGNORE_ON_INVALID_REFERENCE ),
1196- new Reference (EntityManagerInterface::class),
11971197 ]),
11981198 '' , // injected in dependency injection
11991199 ]
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ private function createEmMockExpectation(): array
215215
216216 return [
217217 [
218- EntityManagerInterface::class ,
218+ ' doctrine.orm.entity_manager ' ,
219219 $ emMock ,
220220 ],
221221 ];
You can’t perform that action at this time.
0 commit comments