File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Symfony/EventListener Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,13 @@ public function onKernelView(ViewEvent $event): void
75
75
76
76
$ attributes = RequestAttributesExtractor::extractAttributes ($ request );
77
77
78
- // TODO: 3.0 remove condition
78
+ // TODO: 3.0 adapt condition (remove legacy part)
79
79
if (
80
- (! $ this -> resourceMetadataFactory || $ this -> resourceMetadataFactory instanceof ResourceMetadataFactoryInterface )
81
- &&
82
- (
83
- !( $ attributes [ ' respond ' ] ?? $ request -> attributes -> getBoolean ( ' _api_respond ' , false ))
84
- || ( $ attributes && $ this ->isOperationAttributeDisabled ($ attributes , self ::OPERATION_ATTRIBUTE_KEY ) )
80
+ !( $ attributes [ ' respond ' ] ?? $ request -> attributes -> getBoolean ( ' _api_respond ' , false ) )
81
+ || (
82
+ (! $ this -> resourceMetadataFactory || $ this -> resourceMetadataFactory instanceof ResourceMetadataFactoryInterface)
83
+ && $ attributes
84
+ && $ this ->isOperationAttributeDisabled ($ attributes , self ::OPERATION_ATTRIBUTE_KEY )
85
85
)
86
86
) {
87
87
return ;
You can’t perform that action at this time.
0 commit comments