File tree 4 files changed +28
-11
lines changed
4 files changed +28
-11
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,17 @@ interface Authenticator
22
22
Failure = 3 ,
23
23
NotApproved = 4 ;
24
24
25
- /** Deprecated */
26
- public const
27
- IDENTITY_NOT_FOUND = self ::IdentityNotFound,
28
- INVALID_CREDENTIAL = self ::InvalidCredential,
29
- FAILURE = self ::Failure,
30
- NOT_APPROVED = self ::NotApproved;
25
+ /** @deprecated use Authenticator::IdentityNotFound */
26
+ public const IDENTITY_NOT_FOUND = self ::IdentityNotFound;
27
+
28
+ /** @deprecated use Authenticator::InvalidCredential */
29
+ public const INVALID_CREDENTIAL = self ::InvalidCredential;
30
+
31
+ /** @deprecated use Authenticator::Failure */
32
+ public const FAILURE = self ::Failure;
33
+
34
+ /** @deprecated use Authenticator::NotApproved */
35
+ public const NOT_APPROVED = self ::NotApproved;
31
36
32
37
/**
33
38
* Performs an authentication.
Original file line number Diff line number Diff line change @@ -25,8 +25,13 @@ interface Authorizator
25
25
/** Permission type: deny */
26
26
public const Deny = false ;
27
27
28
+ /** @deprecated use Authorizator::All */
28
29
public const ALL = self ::All;
30
+
31
+ /** @deprecated use Authorizator::Allow */
29
32
public const ALLOW = self ::Allow;
33
+
34
+ /** @deprecated use Authorizator::Deny */
30
35
public const DENY = self ::Deny;
31
36
32
37
/**
Original file line number Diff line number Diff line change @@ -28,19 +28,23 @@ class User
28
28
{
29
29
use Nette \SmartObject;
30
30
31
- /** @deprecated */
32
- public const
33
- MANUAL = UserStorage::LOGOUT_MANUAL ,
34
- INACTIVITY = UserStorage::LOGOUT_INACTIVITY ;
35
-
36
31
/** Log-out reason */
37
32
public const
38
33
LogoutManual = UserStorage::LogoutManual,
39
34
LogoutInactivity = UserStorage::LogoutInactivity;
40
35
36
+ /** @deprecated use User::LogoutManual */
41
37
public const LOGOUT_MANUAL = self ::LogoutManual;
38
+
39
+ /** @deprecated use User::LogoutManual */
40
+ public const MANUAL = self ::LogoutManual;
41
+
42
+ /** @deprecated use User::LogoutInactivity */
42
43
public const LOGOUT_INACTIVITY = self ::LogoutInactivity;
43
44
45
+ /** @deprecated use User::LogoutInactivity */
46
+ public const INACTIVITY = self ::LogoutInactivity;
47
+
44
48
/** default role for unauthenticated user */
45
49
public string $ guestRole = 'guest ' ;
46
50
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ interface UserStorage
20
20
LogoutManual = 1 ,
21
21
LogoutInactivity = 2 ;
22
22
23
+ /** @deprecated use User::LogoutManual */
23
24
public const LOGOUT_MANUAL = self ::LogoutManual;
25
+
26
+ /** @deprecated use User::LogoutInactivity */
24
27
public const LOGOUT_INACTIVITY = self ::LogoutInactivity;
25
28
26
29
/**
You can’t perform that action at this time.
0 commit comments