Skip to content

Commit 1afa346

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Upgrading] Recommend to delete cache when upgrading to a major version [AssetMapper] Mention PublicAssetsFilesystemInterface
2 parents d166f21 + 3aee84f commit 1afa346

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

frontend/asset_mapper.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ This will physically copy all the files from your mapped directories to
8989
``public/assets/`` so that they're served directly by your web server.
9090
See :ref:`Deployment <asset-mapper-deployment>` for more details.
9191

92+
.. tip::
93+
94+
If you need to copy the compiled assets to a different location (e.g. upload
95+
them to S3), create a service that implements ``Symfony\Component\AssetMapper\Path\PublicAssetsFilesystemInterface``
96+
and set its service id (or an alias) to ``asset_mapper.local_public_assets_filesystem``
97+
(to replace the built-in service).
98+
9299
Debugging: Seeing All Mapped Assets
93100
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94101

setup/upgrade_major.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,19 @@ Next, use Composer to download new versions of the libraries:
182182
183183
$ composer update "symfony/*"
184184
185+
A best practice after updating to a new major version is to clear the cache.
186+
Instead of running the ``cache:clear`` command (which won't work if the application
187+
is not bootable in the console after the upgrade) it's better to remove the entire
188+
cache directory contents:
189+
190+
.. code-block:: terminal
191+
192+
# run this command on Linux and macOS
193+
$ rm -rf var/cache/*
194+
195+
# run this command on Windows
196+
C:\> rmdir /s /q var\cache\*
197+
185198
.. include:: /setup/_update_dep_errors.rst.inc
186199

187200
.. include:: /setup/_update_all_packages.rst.inc

0 commit comments

Comments
 (0)