Skip to content

Commit 511756d

Browse files
committed
[symfony#2480] Tweaks to new Assetic DIC tags
1 parent 6690584 commit 511756d

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

reference/dic_tags.rst

+16-17
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ You can learn a little bit more about "tags" by reading the ":ref:`book-service-
1010
section of the Service Container chapter.
1111

1212
Below is information about all of the tags available inside Symfony2. There
13-
may also be tags in other bundles you use that aren't listed here. For example,
14-
the AsseticBundle has several tags that aren't listed here.
13+
may also be tags in other bundles you use that aren't listed here.
1514

1615
+-----------------------------------+---------------------------------------------------------------------------+
1716
| Tag Name | Usage |
@@ -70,17 +69,16 @@ the AsseticBundle has several tags that aren't listed here.
7069
assetic.asset
7170
-------------
7271

73-
**Purpose**: Register an asset to the current asset manager
72+
**Purpose**: Register an asset with the current asset manager
7473

7574
assetic.factory_worker
7675
----------------------
7776

7877
**Purpose**: Add a factory worker
7978

80-
Factory worker is a class implementing
81-
``Assetic\\Factory\\Worker\\WorkerInterface``. Its ``process($asset)``
82-
method is called for each asset after asset creation. You can modify an asset or
83-
even return a new one.
79+
A Factory worker is a class implementing ``Assetic\Factory\Worker\WorkerInterface``.
80+
Its ``process($asset)`` method is called for each asset after asset creation.
81+
You can modify an asset or even return a new one.
8482

8583
In order to add a new worker, first create a class::
8684

@@ -126,8 +124,8 @@ assetic.filter
126124
127125
**Purpose**: Register a filter
128126
129-
AsseticBundle uses this filter to register common filters. You can also use this
130-
tag to register your own filters.
127+
AsseticBundle uses this tag to register common filters. You can also use
128+
this tag to register your own filters.
131129
132130
First, you need to create a filter::
133131
@@ -183,22 +181,23 @@ Finally, apply the filter:
183181
<script src="{{ asset_url }}"></script>
184182
{% endjavascripts %}
185183
186-
You can also apply your filter via ``assetic.filters.my_filter.apply_to`` config
187-
option as it's described here: :doc:`/cookbook/assetic/apply_to_option`. In
188-
order to do that, you must define your filter service in separate xml config
189-
file and put this file's path to ``assetic.filters.my_filter.resource``.
184+
You can also apply your filter via the ``assetic.filters.my_filter.apply_to``
185+
config option as it's described here: :doc:`/cookbook/assetic/apply_to_option`.
186+
In order to do that, you must define your filter service in a separate xml
187+
config file and point to this file's via the ``assetic.filters.my_filter.resource``
188+
configuration key.
190189
191190
assetic.formula_loader
192191
----------------------
193192
194193
**Purpose**: Add a formula loader to the current asset manager
195194
196-
Formula loader is a class implementing
195+
A Formula loader is a class implementing
197196
``Assetic\\Factory\Loader\\FormulaLoaderInterface`` interface. This class
198-
is responsible in loading assets from a particular kind of resources (for
197+
is responsible for loading assets from a particular kind of resources (for
199198
instance, twig template). Assetic ships loaders for php and twig templates.
200199
201-
An ``alias`` attribute defines a name of the loader.
200+
An ``alias`` attribute defines the name of the loader.
202201
203202
assetic.formula_resource
204203
------------------------
@@ -213,7 +212,7 @@ assetic.templating.php
213212
214213
**Purpose**: Remove this service if php templating is disabled
215214
216-
The tagged service will be removed from the container if
215+
The tagged service will be removed from the container if the
217216
``framework.templating.engines`` config section does not contain php.
218217
219218
assetic.templating.twig

0 commit comments

Comments
 (0)