From 1da00db24753792304b7e7510f8dce900e95b80d Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 22 Jan 2019 15:51:10 +0100 Subject: [PATCH] use final annotation to allow mocking the class --- src/Symfony/Component/Security/Core/Security.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Core/Security.php b/src/Symfony/Component/Security/Core/Security.php index 5d6bf51af1..9d771b5818 100644 --- a/src/Symfony/Component/Security/Core/Security.php +++ b/src/Symfony/Component/Security/Core/Security.php @@ -17,8 +17,10 @@ use Symfony\Component\Security\Core\User\UserInterface; /** * Helper class for commonly-needed security tasks. + * + * @final */ -final class Security +class Security { const ACCESS_DENIED_ERROR = '_security.403_error'; const AUTHENTICATION_ERROR = '_security.last_error';