Skip to content

Routing component : Route constructor example #1354

@stefk

Description

@stefk

Hi,

In the routing component documentation, I've found the following snippet :

$route = new Route('/foo', array('_method' => 'post', '_scheme' => 'https' ));

I think the array containing the '_method' and '_scheme' keys defines the requirements of the route, which comes in third position in the constructor argument list. Thus, it should probably be :

$route = new Route('/foo', array(), array('_method' => 'post', '_scheme' => 'https' ));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions