From e06251ba31d29fd1be7ca235d3836bc35669261c Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 25 Jan 2024 18:03:11 +0100 Subject: [PATCH] [AssetMapper] Mention PublicAssetsFilesystemInterface --- frontend/asset_mapper.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index 803d7dbace6..6ce899d9767 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -93,6 +93,13 @@ This will physically copy all the files from your mapped directories to ``public/assets/`` so that they're served directly by your web server. See :ref:`Deployment ` for more details. +.. tip:: + + If you need to copy the compiled assets to a different location (e.g. upload + them to S3), create a service that implements ``Symfony\Component\AssetMapper\Path\PublicAssetsFilesystemInterface`` + and set its service id (or an alias) to ``asset_mapper.local_public_assets_filesystem`` + (to replace the built-in service). + Debugging: Seeing All Mapped Assets ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~