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: UPGRADE-5.0.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -347,6 +347,17 @@ Security
347
347
`__serialize`and `__unserialize`
348
348
* The `IS_AUTHENTICATED_ANONYMOUSLY` attribute is removed, use `IS_AUTHENTICATED` instead.
349
349
* The `IS_AUTHENTICATED_REMEMBERED` attribute is removed, use `IS_REMEMBERED` instead.
350
+
* The `is_anonymous()`, `is_remember_me()`, `is_authenticated()` and `is_fully_authenticated()` expression functions are removed. Use `is_granted()` with the correct attribute instead:
351
+
352
+
Before:
353
+
```
354
+
is_remember_me() or is_anonymous()
355
+
```
356
+
357
+
After:
358
+
```
359
+
is_granted('IS_REMEBERED') or is_granted('IS_ANONYMOUS')
@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);
29
+
28
30
return'$trust_resolver->isAnonymous($token)';
29
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);
@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);
@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);
@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);
49
+
40
50
return'$trust_resolver->isFullFledged($token)';
41
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);
@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);
65
+
52
66
return'$trust_resolver->isRememberMe($token)';
53
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);