From 7b02e7151c290ce2b6845e57effb90385d964b17 Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Wed, 16 Apr 2025 16:14:46 +0200 Subject: [PATCH 1/2] Fix exception message --- src/Authenticator/AuthenticatorCollection.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Authenticator/AuthenticatorCollection.php b/src/Authenticator/AuthenticatorCollection.php index ec21ef2f..16503250 100644 --- a/src/Authenticator/AuthenticatorCollection.php +++ b/src/Authenticator/AuthenticatorCollection.php @@ -84,7 +84,12 @@ protected function _resolveClassName(string $class): ?string */ protected function _throwMissingClassError(string $class, ?string $plugin): void { + if ($plugin) { + $class = $plugin . '.' . $class; + } + $message = sprintf('Authenticator class `%s` was not found.', $class); + throw new RuntimeException($message); } } From 9a091eaea8a6bc8b381840bdff51f9c6b0893802 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 16 Apr 2025 14:44:00 -0400 Subject: [PATCH 2/2] Update AuthenticatorCollection.php --- src/Authenticator/AuthenticatorCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authenticator/AuthenticatorCollection.php b/src/Authenticator/AuthenticatorCollection.php index 16503250..0a5f8f06 100644 --- a/src/Authenticator/AuthenticatorCollection.php +++ b/src/Authenticator/AuthenticatorCollection.php @@ -87,7 +87,7 @@ protected function _throwMissingClassError(string $class, ?string $plugin): void if ($plugin) { $class = $plugin . '.' . $class; } - + $message = sprintf('Authenticator class `%s` was not found.', $class); throw new RuntimeException($message);