diff --git a/src/Security/Authenticator.php b/src/Security/Authenticator.php index d79e636..9682928 100644 --- a/src/Security/Authenticator.php +++ b/src/Security/Authenticator.php @@ -22,6 +22,18 @@ interface Authenticator extends IAuthenticator Failure = 3, NotApproved = 4; + /** @deprecated use Authenticator::IdentityNotFound */ + public const IDENTITY_NOT_FOUND = self::IdentityNotFound; + + /** @deprecated use Authenticator::InvalidCredential */ + public const INVALID_CREDENTIAL = self::InvalidCredential; + + /** @deprecated use Authenticator::Failure */ + public const FAILURE = self::Failure; + + /** @deprecated use Authenticator::NotApproved */ + public const NOT_APPROVED = self::NotApproved; + /** * Performs an authentication. * @throws AuthenticationException diff --git a/src/Security/Authorizator.php b/src/Security/Authorizator.php index 106f6cb..a8fa356 100644 --- a/src/Security/Authorizator.php +++ b/src/Security/Authorizator.php @@ -25,8 +25,13 @@ interface Authorizator /** Permission type: deny */ public const Deny = false; + /** @deprecated use Authorizator::All */ public const ALL = self::All; + + /** @deprecated use Authorizator::Allow */ public const ALLOW = self::Allow; + + /** @deprecated use Authorizator::Deny */ public const DENY = self::Deny; /** diff --git a/src/Security/User.php b/src/Security/User.php index b2acb47..afeb67b 100644 --- a/src/Security/User.php +++ b/src/Security/User.php @@ -33,14 +33,18 @@ class User LogoutManual = 1, LogoutInactivity = 2; - /** @deprecated */ - public const - MANUAL = self::LogoutManual, - INACTIVITY = self::LogoutInactivity; - + /** @deprecated use User::LogoutManual */ public const LOGOUT_MANUAL = self::LogoutManual; + + /** @deprecated use User::LogoutManual */ + public const MANUAL = self::LogoutManual; + + /** @deprecated use User::LogoutInactivity */ public const LOGOUT_INACTIVITY = self::LogoutInactivity; + /** @deprecated use User::LogoutInactivity */ + public const INACTIVITY = self::LogoutInactivity; + /** default role for unauthenticated user */ public string $guestRole = 'guest';