Commit e4df3aac authored by Fabien Potencier's avatar Fabien Potencier

minor #1144 Add mention of patch method to usage docs (bruston)

This PR was submitted for the master branch but it was merged into the 1.2 branch instead (closes #1144).

Discussion
----------

Add mention of patch method to usage docs

Commits
-------

f8c6113d Add mention of patch method to usage docs
parents 2057560b f8c6113d
......@@ -73,9 +73,10 @@ A route pattern consists of:
pattern can include variable parts and you are able to set RegExp
requirements for them.
* *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT`` or
``DELETE``. This describes the interaction with the resource. Commonly only
``GET`` and ``POST`` are used, but it is possible to use the others as well.
* *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT``,
``DELETE`` or ``PATCH``. This describes the interaction with the resource.
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::
......@@ -201,6 +202,10 @@ methods on your application: ``get``, ``post``, ``put``, ``delete``::
// ...
});
$app->patch('/blog/{id}', function ($id) {
// ...
});
.. tip::
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