summaryrefslogtreecommitdiffstats
path: root/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Core')
-rw-r--r--Core/Security.php (renamed from Core/SecuritySessionStorageInterface.php)4
-rw-r--r--Core/SecurityContextInterface.php5
2 files changed, 6 insertions, 3 deletions
diff --git a/Core/SecuritySessionStorageInterface.php b/Core/Security.php
index 47c0bbe..d397fb4 100644
--- a/Core/SecuritySessionStorageInterface.php
+++ b/Core/Security.php
@@ -12,11 +12,11 @@
namespace Symfony\Component\Security\Core;
/**
- * The SecuritySessionStorageInterface.
+ * This class holds security information.
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*/
-interface SecuritySessionStorageInterface
+final class Security
{
const ACCESS_DENIED_ERROR = '_security.403_error';
const AUTHENTICATION_ERROR = '_security.last_error';
diff --git a/Core/SecurityContextInterface.php b/Core/SecurityContextInterface.php
index 844482b..4421622 100644
--- a/Core/SecurityContextInterface.php
+++ b/Core/SecurityContextInterface.php
@@ -20,6 +20,9 @@ use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
* @deprecated Deprecated since version 2.6, to be removed in 3.0.
*/
-interface SecurityContextInterface extends TokenStorageInterface, AuthorizationCheckerInterface, SecuritySessionStorageInterface
+interface SecurityContextInterface extends TokenStorageInterface, AuthorizationCheckerInterface
{
+ const ACCESS_DENIED_ERROR = Security::ACCESS_DENIED_ERROR;
+ const AUTHENTICATION_ERROR = Security::AUTHENTICATION_ERROR;
+ const LAST_USERNAME = Security::LAST_USERNAME;
}