Commit 2f5d870f authored by DaveC49's avatar DaveC49 Committed by Fabien Potencier

Added argument description to twig asset() method

parent efe70d6a
...@@ -46,7 +46,10 @@ Registering ...@@ -46,7 +46,10 @@ Registering
Usage Usage
----- -----
The AssetServiceProvider is mostly useful with the Twig provider: The AssetServiceProvider is mostly useful with the Twig provider using the asset(method).
This has two string arguments. In the case of named packages, the first is the path relative to
the base_path specified in the package definition and the second is the package name. For unmamed
packages, there is only one argument, the path relative to the assets folder:
.. code-block:: jinja .. code-block:: jinja
...@@ -56,5 +59,7 @@ The AssetServiceProvider is mostly useful with the Twig provider: ...@@ -56,5 +59,7 @@ The AssetServiceProvider is mostly useful with the Twig provider:
{{ asset_version('/css/foo.png') }} {{ asset_version('/css/foo.png') }}
For more information, check out the `Asset Component documentation For more information, check out the `Asset Component documentation
<https://symfony.com/doc/current/components/asset/introduction.html>`_. <https://symfony.com/doc/current/components/asset/introduction.html>`_.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment