Skip to content

RouteList should define domain prefix #12

@janbarasek

Description

@janbarasek

Very often I need to define a group of routes that have a common prefix in a single RouteList.

For example locale:

$router = new RouteList('Front');
$router->addRoute('https://%host%/<locale>/<presenter>/<action>', ...);

Now there is no easy way to set a common prefix for all routes in a domain (module).

It could be set as a RouteList second argument:

$router = new RouteList('Front', 'https://%host%/<locale>/');
$router->addRoute('<presenter>/<action>', ...);

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions