Skip to content

Add version_strategy parameter for FrameworkBundle #7140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Configuration
* `base_path`_
* `base_urls`_
* `packages`_
* `version_strategy`_
* `version`_
* `version_format`_
* `templating`_
Expand Down Expand Up @@ -958,9 +959,26 @@ Each package can configure the following options:

* :ref:`base_path <reference-assets-base-path>`
* :ref:`base_urls <reference-assets-base-urls>`
* :ref:`version_strategy <reference-assets-version-strategy>`
* :ref:`version <reference-framework-assets-version>`
* :ref:`version_format <reference-assets-version-format>`

.. _reference-templating-version-strategy:
.. _reference-assets-version-strategy:

version_strategy
................

**type**: ``string`` **default**: ``null``

This specifies the id of the service to use as the version strategy for
all rendered asset paths. Version strategies must implement
:class:`Symfony\\Component\\Asset\\VersionStrategy\\VersionStrategyInterface`.

.. note::

This parameter cannot be set at the same time as ``version``.

.. _reference-framework-assets-version:
.. _ref-framework-assets-version:

Expand Down Expand Up @@ -1031,6 +1049,10 @@ before each deployment so that the query parameters change.
You can also control how the query string works via the `version_format`_
option.

.. note::

This parameter cannot be set at the same time as ``version_strategy``.

.. tip::

As with all settings, you can use a parameter as value for the
Expand Down