File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,7 @@ public function supports(Request $request): ?bool
50
50
[$ attributes ] = $ this ->map ->getPatterns ($ request );
51
51
$ request ->attributes ->set ('_access_control_attributes ' , $ attributes );
52
52
53
- if ($ attributes && (
54
- (\defined (AuthenticatedVoter::class.'::IS_AUTHENTICATED_ANONYMOUSLY ' ) ? [AuthenticatedVoter::IS_AUTHENTICATED_ANONYMOUSLY ] !== $ attributes : true )
55
- && [AuthenticatedVoter::PUBLIC_ACCESS ] !== $ attributes
56
- )) {
53
+ if ($ attributes && [AuthenticatedVoter::PUBLIC_ACCESS ] !== $ attributes ) {
57
54
return true ;
58
55
}
59
56
@@ -72,10 +69,9 @@ public function authenticate(RequestEvent $event)
72
69
$ attributes = $ request ->attributes ->get ('_access_control_attributes ' );
73
70
$ request ->attributes ->remove ('_access_control_attributes ' );
74
71
75
- if (!$ attributes || ((
76
- (\defined (AuthenticatedVoter::class.'::IS_AUTHENTICATED_ANONYMOUSLY ' ) ? [AuthenticatedVoter::IS_AUTHENTICATED_ANONYMOUSLY ] === $ attributes : false )
77
- || [AuthenticatedVoter::PUBLIC_ACCESS ] === $ attributes
78
- ) && $ event instanceof LazyResponseEvent)) {
72
+ if (!$ attributes || (
73
+ [AuthenticatedVoter::PUBLIC_ACCESS ] === $ attributes && $ event instanceof LazyResponseEvent
74
+ )) {
79
75
return ;
80
76
}
81
77
You can’t perform that action at this time.
0 commit comments