File tree 3 files changed +9
-7
lines changed
Filter options
src/Symfony/Component/Security/Core
3 files changed +9
-7
lines changed
Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ Security
61
61
62
62
* Deprecate ` AuthenticatedVoter::IS_AUTHENTICATED_ANONYMOUSLY ` and ` AuthenticatedVoter::IS_ANONYMOUS ` ,
63
63
use ` AuthenticatedVoter::IS_AUTHENTICATED_FULLY ` or ` AuthenticatedVoter::IS_AUTHENTICATED ` instead.
64
- * Deprecate ` AuthenticationTrustResolverInterface::isAnonymous() ` as anonymous no longer exists
65
- in version 6, use the ` isFullFledged() ` or the new ` isAuthenticated() ` instead if you want to
66
- check if the request is (fully) authenticated.
64
+ * Deprecate ` AuthenticationTrustResolverInterface::isAnonymous() ` and the ` is_anonymous() ` expression function
65
+ as anonymous no longer exists in version 6, use the ` isFullFledged() ` or the new ` isAuthenticated() ` instead
66
+ if you want to check if the request is (fully) authenticated.
67
67
* Deprecate the ` $authManager ` argument of ` AccessListener `
68
68
* Deprecate the ` $authenticationManager ` argument of the ` AuthorizationChecker ` constructor
69
69
* Deprecate setting the ` $alwaysAuthenticate ` argument to ` true ` and not setting the
Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ public function getFunctions()
26
26
{
27
27
return [
28
28
new ExpressionFunction ('is_anonymous ' , function () {
29
- return '$token && $auth_checker->isGranted("IS_ANONYMOUS") ' ;
29
+ return 'trigger_deprecation("symfony/security-core", "5.4", "The \"is_anonymous()\" expression function is deprecated.") || ( $token && $auth_checker->isGranted("IS_ANONYMOUS") ) ' ;
30
30
}, function (array $ variables ) {
31
+ trigger_deprecation ('symfony/security-core ' , '5.4 ' , 'The "is_anonymous()" expression function is deprecated. ' );
32
+
31
33
return $ variables ['token ' ] && $ variables ['auth_checker ' ]->isGranted ('IS_ANONYMOUS ' );
32
34
}),
33
35
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ CHANGELOG
6
6
7
7
* Deprecate ` AuthenticatedVoter::IS_AUTHENTICATED_ANONYMOUSLY ` and ` AuthenticatedVoter::IS_ANONYMOUS ` ,
8
8
use ` AuthenticatedVoter::IS_AUTHENTICATED_FULLY ` or ` AuthenticatedVoter::IS_AUTHENTICATED ` instead.
9
- * Deprecate ` AuthenticationTrustResolverInterface::isAnonymous() ` as anonymous no longer exists
10
- in version 6, use the ` isFullFledged() ` or the new ` isAuthenticated() ` instead if you want to
11
- check if the request is (fully) authenticated.
9
+ * Deprecate ` AuthenticationTrustResolverInterface::isAnonymous() ` and the ` is_anonymous() ` expression
10
+ function as anonymous no longer exists in version 6, use the ` isFullFledged() ` or the new
11
+ ` isAuthenticated() ` instead if you want to check if the request is (fully) authenticated.
12
12
* Deprecate the ` $authenticationManager ` argument of the ` AuthorizationChecker ` constructor
13
13
* Deprecate setting the ` $alwaysAuthenticate ` argument to ` true ` and not setting the
14
14
` $exceptionOnNoToken ` argument to ` false ` of ` AuthorizationChecker `
You can’t perform that action at this time.
0 commit comments