From d13cf16647eb5f3637e8b6acbff482ee90d3a828 Mon Sep 17 00:00:00 2001 From: Geert Eltink Date: Tue, 16 Dec 2014 09:27:20 +0100 Subject: [PATCH 1/3] Update asset_management.rst I'm getting this message: The --watch option is deprecated. Please use the assetic:watch command instead. --- cookbook/assetic/asset_management.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/assetic/asset_management.rst b/cookbook/assetic/asset_management.rst index 6743796edba..dd617365c2b 100644 --- a/cookbook/assetic/asset_management.rst +++ b/cookbook/assetic/asset_management.rst @@ -545,7 +545,7 @@ command will automatically regenerate assets *as they change*: .. code-block:: bash - $ php app/console assetic:dump --watch + $ php app/console assetic:watch Since running this command in the ``dev`` environment may generate a bunch of files, it's usually a good idea to point your generated assets files to From ca0365e91569663effd8a893976458fc258f586a Mon Sep 17 00:00:00 2001 From: Geert Eltink Date: Tue, 16 Dec 2014 13:06:45 +0100 Subject: [PATCH 2/3] Improve assetic:watch text --- cookbook/assetic/asset_management.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cookbook/assetic/asset_management.rst b/cookbook/assetic/asset_management.rst index dd617365c2b..58d22957513 100644 --- a/cookbook/assetic/asset_management.rst +++ b/cookbook/assetic/asset_management.rst @@ -540,13 +540,17 @@ need to dump them manually. To do so, run the following: This physically writes all of the asset files you need for your ``dev`` environment. The big disadvantage is that you need to run this each time -you update an asset. Fortunately, by passing the ``--watch`` option, the -command will automatically regenerate assets *as they change*: +you update an asset. Fortunately, by using ``assetic:watch`` command, the +assets will be regenerated automatically *as they change*: .. code-block:: bash $ php app/console assetic:watch +The ``assetic:watch`` command was introduced in AsseticBundle 2.4. In prior +versions, you had to use the ``--watch`` option of the ``assetic:dump`` +command for the same behavior. + Since running this command in the ``dev`` environment may generate a bunch of files, it's usually a good idea to point your generated assets files to some isolated directory (e.g. ``/js/compiled``), to keep things organized: From 578ab89617ae3b8d4ff9c4da9a6cfb39fefff1d2 Mon Sep 17 00:00:00 2001 From: Geert Eltink Date: Tue, 16 Dec 2014 13:11:57 +0100 Subject: [PATCH 3/3] Typo --- cookbook/assetic/asset_management.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/assetic/asset_management.rst b/cookbook/assetic/asset_management.rst index 58d22957513..0f92c01fa73 100644 --- a/cookbook/assetic/asset_management.rst +++ b/cookbook/assetic/asset_management.rst @@ -540,7 +540,7 @@ need to dump them manually. To do so, run the following: This physically writes all of the asset files you need for your ``dev`` environment. The big disadvantage is that you need to run this each time -you update an asset. Fortunately, by using ``assetic:watch`` command, the +you update an asset. Fortunately, by using the ``assetic:watch`` command, assets will be regenerated automatically *as they change*: .. code-block:: bash