Commit f8c6113d authored by Benjamin Ruston's avatar Benjamin Ruston Committed by Fabien Potencier

Add mention of patch method to usage docs

parent 2057560b
...@@ -73,9 +73,10 @@ A route pattern consists of: ...@@ -73,9 +73,10 @@ A route pattern consists of:
pattern can include variable parts and you are able to set RegExp pattern can include variable parts and you are able to set RegExp
requirements for them. requirements for them.
* *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT`` or * *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT``,
``DELETE``. This describes the interaction with the resource. Commonly only ``DELETE`` or ``PATCH``. This describes the interaction with the resource.
``GET`` and ``POST`` are used, but it is possible to use the others as well. Commonly only ``GET`` and ``POST`` are used, but it is possible to use the
others as well.
The controller is defined using a closure like this:: The controller is defined using a closure like this::
...@@ -201,6 +202,10 @@ methods on your application: ``get``, ``post``, ``put``, ``delete``:: ...@@ -201,6 +202,10 @@ methods on your application: ``get``, ``post``, ``put``, ``delete``::
// ... // ...
}); });
$app->patch('/blog/{id}', function ($id) {
// ...
});
.. tip:: .. tip::
Forms in most web browsers do not directly support the use of other HTTP Forms in most web browsers do not directly support the use of other HTTP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment