File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Filter options
src/Symfony/Component/Runtime Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Original file line number Diff line number Diff line change @@ -86,13 +86,13 @@ private function createRequest()
86
86
throw new \LogicException (sprintf ('The "%s" class requires "nyholm/psr7-server". Try running "composer require nyholm/psr7-server". ' , self ::class));
87
87
}
88
88
89
- $ creatorClass = $ options ['server_request_creator ' ] ?? ServerRequestCreator::class;
90
- if (isset ($ options ['psr17_server_request_factory ' ], $ options ['psr17_uri_factory ' ], $ options ['psr17_uploaded_file_factory ' ], $ options ['psr17_stream_factory ' ])) {
89
+ $ creatorClass = $ this -> options ['server_request_creator ' ] ?? ServerRequestCreator::class;
90
+ if (isset ($ this -> options ['psr17_server_request_factory ' ], $ this -> options ['psr17_uri_factory ' ], $ this -> options ['psr17_uploaded_file_factory ' ], $ this -> options ['psr17_stream_factory ' ])) {
91
91
$ this ->requestCreator = new $ creatorClass (
92
- new $ options ['psr17_server_request_factory ' ](),
93
- new $ options ['psr17_uri_factory ' ](),
94
- new $ options ['psr17_uploaded_file_factory ' ](),
95
- new $ options ['psr17_stream_factory ' ]()
92
+ new $ this -> options ['psr17_server_request_factory ' ](),
93
+ new $ this -> options ['psr17_uri_factory ' ](),
94
+ new $ this -> options ['psr17_uploaded_file_factory ' ](),
95
+ new $ this -> options ['psr17_stream_factory ' ]()
96
96
);
97
97
} elseif (class_exists (Psr17Factory::class)) {
98
98
$ psr17Factory = new Psr17Factory ();
You can’t perform that action at this time.
0 commit comments