Skip to content

Commit 5e83045

Browse files
committed
feature #4657 Update assetic watch command (xtreamwayz)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #4657). Discussion ---------- Update assetic watch command | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.6 | Fixed tickets | - I'm getting this message: The --watch option is deprecated. Please use the assetic:watch command instead. Commits ------- 1009ed4 Typo 987a31a Improve assetic:watch text 8c38ec8 Update asset_management.rst
2 parents d447b12 + 1009ed4 commit 5e83045

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cookbook/assetic/asset_management.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,16 @@ need to dump them manually. To do so, run the following:
540540
541541
This physically writes all of the asset files you need for your ``dev``
542542
environment. The big disadvantage is that you need to run this each time
543-
you update an asset. Fortunately, by passing the ``--watch`` option, the
544-
command will automatically regenerate assets *as they change*:
543+
you update an asset. Fortunately, by using the ``assetic:watch`` command,
544+
assets will be regenerated automatically *as they change*:
545545

546546
.. code-block:: bash
547547
548-
$ php app/console assetic:dump --watch
548+
$ php app/console assetic:watch
549+
550+
The ``assetic:watch`` command was introduced in AsseticBundle 2.4. In prior
551+
versions, you had to use the ``--watch`` option of the ``assetic:dump``
552+
command for the same behavior.
549553

550554
Since running this command in the ``dev`` environment may generate a bunch
551555
of files, it's usually a good idea to point your generated asset files to

0 commit comments

Comments
 (0)