-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Description
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
Labels
No labels