From 748ce1b361b4a9b4ec2aabe89d549bf94025f8e1 Mon Sep 17 00:00:00 2001 From: Simone Fumagalli Date: Fri, 17 Jun 2016 16:37:39 +0200 Subject: [PATCH] Version annotation esists only in branch 2.0 --- Resources/doc/versioning.rst | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Resources/doc/versioning.rst b/Resources/doc/versioning.rst index 9ee7d6a58..808596bde 100644 --- a/Resources/doc/versioning.rst +++ b/Resources/doc/versioning.rst @@ -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 - { - }