@@ -35,34 +35,36 @@ public function match($pathinfo)
3535 $ allowarray_merge ($ allowarray ('get ' , 'head ' ));
3636 goto  not_bar;
3737 }
38-  return  array_merge ($ this mergeDefaults ($ matchesarray  ()), array ('_route '  => 'bar ' ));
38+  $ matches'_route ' ] = 'bar ' ;
39+  return  $ matches
3940 }
4041 not_bar:
4142
4243 // baz 
4344 if  ($ pathinfo'/test/baz ' ) {
44-  return  array_merge ( $ this -> mergeDefaults ( array (),  array  ()),  array ( '_route '  => 'baz ' ) );
45+  return  array ('_route '  => 'baz ' );
4546 }
4647
4748 // baz2 
4849 if  ($ pathinfo'/test/baz.html ' ) {
49-  return  array_merge ( $ this -> mergeDefaults ( array (),  array  ()),  array ( '_route '  => 'baz2 ' ) );
50+  return  array ('_route '  => 'baz2 ' );
5051 }
5152
5253 // baz3 
5354 if  (rtrim ($ pathinfo'/ ' ) === '/test/baz3 ' ) {
5455 if  (substr ($ pathinfo1 ) !== '/ ' ) {
5556 return  array ('_controller '  => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction ' , 'url '  => $ this context ['base_url ' ].$ pathinfo'/ ' , 'permanent '  => true , '_route '  => 'baz3 ' );
5657 }
57-  return  array_merge ( $ this -> mergeDefaults ( array (),  array  ()),  array ( '_route '  => 'baz3 ' ) );
58+  return  array ('_route '  => 'baz3 ' );
5859 }
5960
6061 // baz4 
6162 if  (0  === strpos ($ pathinfo'/test ' ) && preg_match ('#^/test/(?P<foo>[^/\.]+?)/?$#x ' , $ pathinfo$ matches
6263 if  (substr ($ pathinfo1 ) !== '/ ' ) {
6364 return  array ('_controller '  => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction ' , 'url '  => $ this context ['base_url ' ].$ pathinfo'/ ' , 'permanent '  => true , '_route '  => 'baz4 ' );
6465 }
65-  return  array_merge ($ this mergeDefaults ($ matchesarray  ()), array ('_route '  => 'baz4 ' ));
66+  $ matches'_route ' ] = 'baz4 ' ;
67+  return  $ matches
6668 }
6769
6870 // baz5 
@@ -74,7 +76,8 @@ public function match($pathinfo)
7476 if  (substr ($ pathinfo1 ) !== '/ ' ) {
7577 return  array ('_controller '  => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction ' , 'url '  => $ this context ['base_url ' ].$ pathinfo'/ ' , 'permanent '  => true , '_route '  => 'baz5 ' );
7678 }
77-  return  array_merge ($ this mergeDefaults ($ matchesarray  ()), array ('_route '  => 'baz5 ' ));
79+  $ matches'_route ' ] = 'baz5 ' ;
80+  return  $ matches
7881 }
7982 not_baz5:
8083
@@ -87,10 +90,16 @@ public function match($pathinfo)
8790 if  (substr ($ pathinfo1 ) !== '/ ' ) {
8891 return  array ('_controller '  => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction ' , 'url '  => $ this context ['base_url ' ].$ pathinfo'/ ' , 'permanent '  => true , '_route '  => 'baz.baz6 ' );
8992 }
90-  return  array_merge ($ this mergeDefaults ($ matchesarray  ()), array ('_route '  => 'baz.baz6 ' ));
93+  $ matches'_route ' ] = 'baz.baz6 ' ;
94+  return  $ matches
9195 }
9296 not_bazbaz6:
9397
98+  // foofoo 
99+  if  ($ pathinfo'/foofoo ' ) {
100+  return  array  ( 'def '  => 'test ' , '_route '  => 'foofoo ' ,);
101+  }
102+ 
94103 throw  0  < count ($ allownew  MethodNotAllowedException (array_unique ($ allownew  NotFoundException ();
95104 }
96105}
0 commit comments