Skip to content

Commit

Permalink
Version annotation esists only in branch 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hpatoio authored Jun 17, 2016
1 parent b6fa685 commit 748ce1b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Resources/doc/versioning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,3 @@ You can use conditions on your request to check for the version that was determi
my_route:
# ...
condition: "request.attributes.get('version') == 'v2'"
When using the :doc:`automatic route generation <5-automatic-route-generation_single-restful-controller>`,
you can also use the ``@Version`` annotation to set the above condition automatically on all methods
in the given controller.

.. code-block:: php
use FOS\RestBundle\Controller\Annotations\Version;
/**
* @Version("v2")
*/
class MyController
{
}

0 comments on commit 748ce1b

Please sign in to comment.