use final annotation to allow mocking the class
This commit is contained in:
parent
5e9373bf18
commit
1da00db247
@ -17,8 +17,10 @@ use Symfony\Component\Security\Core\User\UserInterface;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class for commonly-needed security tasks.
|
* Helper class for commonly-needed security tasks.
|
||||||
|
*
|
||||||
|
* @final
|
||||||
*/
|
*/
|
||||||
final class Security
|
class Security
|
||||||
{
|
{
|
||||||
const ACCESS_DENIED_ERROR = '_security.403_error';
|
const ACCESS_DENIED_ERROR = '_security.403_error';
|
||||||
const AUTHENTICATION_ERROR = '_security.last_error';
|
const AUTHENTICATION_ERROR = '_security.last_error';
|
||||||
|
Reference in New Issue
Block a user