Skip to content

Commit e3e763d

Browse files
committed
minor #11217 Remove CustomUserMessageAuthenticationException (rossdeane)
This PR was merged into the 4.2 branch. Discussion ---------- Remove CustomUserMessageAuthenticationException Remove the use of `CustomUserMessageAuthenticationException`, as this is not compatible with the `@throws` tag of the interface. Since `AccountDeletedException` is implemented by the user here, they could let it take a custom message. This statement is only in the 4.2 docs, not the 3.4 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- c488036 Remove CustomUserMessageAuthenticationException
2 parents a17ea5a + c488036 commit e3e763d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

security/user_checkers.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ are not met, an exception should be thrown which extends the
3838
// user is deleted, show a generic Account Not Found message.
3939
if ($user->isDeleted()) {
4040
throw new AccountDeletedException('...');
41-
42-
// or to customize the message shown
43-
throw new CustomUserMessageAuthenticationException(
44-
'Your account was deleted. Sorry about that!'
45-
);
4641
}
4742
}
4843

0 commit comments

Comments
 (0)