diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 21a30013794..10fe29967b4 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -69,6 +69,7 @@ Configuration * `base_path`_ * `base_urls`_ * `packages`_ + * `version_strategy`_ * `version`_ * `version_format`_ * `templating`_ @@ -958,9 +959,26 @@ Each package can configure the following options: * :ref:`base_path ` * :ref:`base_urls ` +* :ref:`version_strategy ` * :ref:`version ` * :ref:`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: @@ -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