8000 "app/console router:match" doesn't properly work with several routes with identical paths but differens host restrictions · Issue #8811 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content 8000
"app/console router:match" doesn't properly work with several routes with identical paths but differens host restrictions #8811
Closed
@mymias

Description

@mymias

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0