Skip to content

Commit c0f1aaf

Browse files
committed
minor #1518 Version annotation exists only in branch 2.0 (hpatoio)
This PR was merged into the 1.8 branch. Discussion ---------- Version annotation exists only in branch 2.0 Let's remove this part from 1.8 doc Commits ------- 748ce1b Version annotation esists only in branch 2.0
2 parents b6fa685 + 748ce1b commit c0f1aaf

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Resources/doc/versioning.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,3 @@ You can use conditions on your request to check for the version that was determi
161161
my_route:
162162
# ...
163163
condition: "request.attributes.get('version') == 'v2'"
164-
165-
When using the :doc:`automatic route generation <5-automatic-route-generation_single-restful-controller>`,
166-
you can also use the ``@Version`` annotation to set the above condition automatically on all methods
167-
in the given controller.
168-
169-
.. code-block:: php
170-
171-
use FOS\RestBundle\Controller\Annotations\Version;
172-
173-
/**
174-
* @Version("v2")
175-
*/
176-
class MyController
177-
{
178-
}

0 commit comments

Comments
 (0)