Closed
Description
If I have several routes with same path but different host restriction, the command "router:match" won't find any matches for urls, that really matches second (or next) routes.
For example, I have routes
$routes->add('first', new Route(
'/mypath/',
array('_controller' => 'MainBundle:Info:first'),
array(),
array(),
'some.example.com'
));
$routes->add('second', new Route(
'/mypath/',
array('_controller' => 'MainBundle:Info:second'),
array(),
array(),
'another.example.com'
));
and if I try to execute command
php app/console router:match /mypath/
the command don't find any matches, if requested host not 'some.example.com'.