From ab2e07b5162c0aed5d8daeec15b71fbd3866aaee Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Sun, 26 Nov 2023 21:52:48 +0100 Subject: [PATCH] [AssetMapper] Exclude dot files --- frontend/asset_mapper.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index f65aff65c17..15b486816ad 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -953,6 +953,25 @@ This is a list of glob patterns that will be excluded from the asset map: You can use the ``debug:asset-map`` command to double-check that the files you expect are being included in the asset map. +``framework.asset_mapper.exclude_dotfiles`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Whether to exclude any file starting with a ``.`` from the asset mapper. This +is useful if you want to avoid leaking sensitive files like ``.env`` or +``.gitignore`` in the files published by the asset mapper. + +.. code-block:: yaml + + framework: + asset_mapper: + exclude_dotfiles: true + +This option is enabled by default. + +.. versionadded:: 7.1 + + The ``exclude_dotfiles`` option was introduced in Symfony 7.1. + .. _config-importmap-polyfill: ``framework.asset_mapper.importmap_polyfill`` pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy