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: ...@@ -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