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 dc9531f commit d20e5f8Copy full SHA for d20e5f8
Resources/doc/format_listener.rst
@@ -153,6 +153,10 @@ If you have to verify if the version is correctly catched you can use something
153
154
.. code-block:: php
155
156
- if($this->container->get('fos_rest.version_listener')) {
+ if ($this->container->get('fos_rest.version_listener')) {
157
print $this->container->get('fos_rest.version_listener')->getVersion();
158
}
159
+
160
+Note that this version mechanism is configurable by your own by changing the regular expression in the `media type version regex configuration`_.
161
162
+.. _`media type version regex configuration`: http://symfony.com/doc/master/bundles/FOSRestBundle/format_listener.html#media-type-version-extraction
0 commit comments