You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authorization/ExpressionLanguageProvider.php
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -25,31 +25,31 @@ public function getFunctions()
25
25
{
26
26
return [
27
27
newExpressionFunction('is_anonymous', function () {
28
-
@trigger_error("is_anonymous() is deprecated since version 4.3 and will be removed in 5.0. Use is_granted('IS_ANONYMOUS') instead.", E_USER_DEPRECATED);
28
+
@trigger_error("is_anonymous() is deprecated since version 4.4 and will be removed in 5.0. Use is_granted('IS_ANONYMOUS') instead.", E_USER_DEPRECATED);
29
29
30
30
return'$trust_resolver->isAnonymous($token)';
31
31
}, function (array$variables) {
32
-
@trigger_error("is_anonymous() is deprecated since version 4.3 and will be removed in 5.0. Use is_granted('IS_ANONYMOUS') instead.", E_USER_DEPRECATED);
32
+
@trigger_error("is_anonymous() is deprecated since version 4.4 and will be removed in 5.0. Use is_granted('IS_ANONYMOUS') instead.", E_USER_DEPRECATED);
newExpressionFunction('is_authenticated', function () {
38
-
@trigger_error("is_authenticated() is deprecated since version 4.3 and will be removed in 5.0. Use is_granted('IS_AUTHENTICATED') instead.", E_USER_DEPRECATED);
38
+
@trigger_error("is_authenticated() is deprecated since version 4.4 and will be removed in 5.0. Use is_granted('IS_AUTHENTICATED') instead.", E_USER_DEPRECATED);
@trigger_error("is_authenticated() is deprecated since version 4.3 and will be removed in 5.0. Use is_granted('IS_AUTHENTICATED') instead.", E_USER_DEPRECATED);
42
+
@trigger_error("is_authenticated() is deprecated since version 4.4 and will be removed in 5.0. Use is_granted('IS_AUTHENTICATED') instead.", E_USER_DEPRECATED);
newExpressionFunction('is_fully_authenticated', function () {
48
-
@trigger_error("is_fully_authenticated() is deprecated since version 4.3 and will be removed in 5.0. Use is_granted('IS_AUTHENTICATED_FULLY') instead.", E_USER_DEPRECATED);
48
+
@trigger_error("is_fully_authenticated() is deprecated since version 4.4 and will be removed in 5.0. Use is_granted('IS_AUTHENTICATED_FULLY') instead.", E_USER_DEPRECATED);
49
49
50
50
return'$trust_resolver->isFullFledged($token)';
51
51
}, function (array$variables) {
52
-
@trigger_error("is_fully_authenticated() is deprecated since version 4.3 and will be removed in 5.0. Use is_granted('IS_AUTHENTICATED_FULLY') instead.", E_USER_DEPRECATED);
52
+
@trigger_error("is_fully_authenticated() is deprecated since version 4.4 and will be removed in 5.0. Use is_granted('IS_AUTHENTICATED_FULLY') instead.", E_USER_DEPRECATED);
@@ -61,11 +61,11 @@ public function getFunctions()
61
61
}),
62
62
63
63
newExpressionFunction('is_remember_me', function () {
64
-
@trigger_error("is_remember_me() is deprecated since version 4.3 and will be removed in 5.0. Use is_granted('IS_REMEMBERED') instead.", E_USER_DEPRECATED);
64
+
@trigger_error("is_remember_me() is deprecated since version 4.4 and will be removed in 5.0. Use is_granted('IS_REMEMBERED') instead.", E_USER_DEPRECATED);
65
65
66
66
return'$trust_resolver->isRememberMe($token)';
67
67
}, function (array$variables) {
68
-
@trigger_error("is_remember_me() is deprecated since version 4.3 and will be removed in 5.0. Use is_granted('IS_REMEMBERED') instead.", E_USER_DEPRECATED);
68
+
@trigger_error("is_remember_me() is deprecated since version 4.4 and will be removed in 5.0. Use is_granted('IS_REMEMBERED') instead.", E_USER_DEPRECATED);
@trigger_error(sprintf('Using "%s" is deprecated since version 4.3 and will be removed in 5.0. Use "%s" instead.', self::IS_AUTHENTICATED_REMEMBERED, self::IS_REMEMBERED), E_USER_DEPRECATED);
73
+
@trigger_error(sprintf('Using "%s" is deprecated since version 4.4 and will be removed in 5.0. Use "%s" instead.', self::IS_AUTHENTICATED_REMEMBERED, self::IS_REMEMBERED), E_USER_DEPRECATED);
74
74
75
75
return VoterInterface::ACCESS_GRANTED;
76
76
}
@@ -80,7 +80,7 @@ public function vote(TokenInterface $token, $subject, array $attributes)
@trigger_error(sprintf('Using "%s" is deprecated since version 4.3 and will be removed in 5.0. Use "%s" instead.', self::IS_AUTHENTICATED_ANONYMOUSLY, self::IS_AUTHENTICATED), E_USER_DEPRECATED);
83
+
@trigger_error(sprintf('Using "%s" is deprecated since version 4.4 and will be removed in 5.0. Use "%s" instead.', self::IS_AUTHENTICATED_ANONYMOUSLY, self::IS_AUTHENTICATED), E_USER_DEPRECATED);
0 commit comments