use final annotation to allow mocking the class

This commit is contained in:
Christian Flothmann 2019-01-22 15:51:10 +01:00
parent 5e9373bf18
commit 1da00db247
1 changed files with 3 additions and 1 deletions

View File

@ -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';