diff --git a/components/routing.rst b/components/routing.rst index 42ac3a2ee44..3ce25d84289 100644 --- a/components/routing.rst +++ b/components/routing.rst @@ -115,7 +115,7 @@ you can define: For example, the following route would only accept requests to /foo with the POST method and a secure connection:: - $route = new Route('/foo', array('_method' => 'post', '_scheme' => 'https' )); + $route = new Route('/foo', array(), array('_method' => 'post', '_scheme' => 'https' )); .. tip::