File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -164,15 +164,14 @@ private function doMatch($url, Request $request = null)
164164 {
165165 $ methodNotAllowed = null ;
166166
167+ $ requestForMatching = $ request ;
167168 foreach ($ this ->all () as $ router ) {
168169 try {
169170 // the request/url match logic is the same as in Symfony/Component/HttpKernel/EventListener/RouterListener.php
170171 // matching requests is more powerful than matching URLs only, so try that first
171172 if ($ router instanceof RequestMatcherInterface) {
172- if (null === $ request ) {
173+ if (empty ( $ requestForMatching ) ) {
173174 $ requestForMatching = Request::create ($ url );
174- } else {
175- $ requestForMatching = $ request ;
176175 }
177176
178177 return $ router ->matchRequest ($ requestForMatching );
You can’t perform that action at this time.
0 commit comments