We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6fa685 commit 748ce1bCopy full SHA for 748ce1b
Resources/doc/versioning.rst
@@ -161,18 +161,3 @@ You can use conditions on your request to check for the version that was determi
161
my_route:
162
# ...
163
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