Update recipe for Contao 5.x (#1760)

This commit is contained in:
David Greminger
2025-05-15 01:59:28 +01:00
committed by GitHub
parent 47d616c6db
commit aed925e502
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# See https://github.com/contao/core-bundle
contao:
preview_script: '/preview.php'
upload_path: files
csrf_token_name: contao_csrf_token
pretty_error_screens: true
when@dev:
contao:
pretty_error_screens: false

View File

@@ -0,0 +1,25 @@
{
"bundles": {
"Contao\\CoreBundle\\ContaoCoreBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"composer-scripts": {
"contao:install %PUBLIC_DIR%": "symfony-cmd",
"contao:symlinks %PUBLIC_DIR%": "symfony-cmd"
},
"gitignore": [
"/assets/",
"/files/",
"/public/assets",
"/public/files/",
"/public/share/",
"/public/system/",
"/system/*",
"!/system/config/",
"/system/config/localconfig.php",
"/system/config/tcpdf.php",
"/system/modules/*/.skip"
]
}

View File

@@ -0,0 +1,9 @@
* Enable ESI in the <fg=green>config/packages/framework.yaml</> file.
* Add the Contao routes to your <fg=green>config/routing.yaml</> file and
make sure they are loaded at the very end.
* Edit your <fg=green>config/security.yaml</> file and include all the
necessary providers, firewalls and access control sections.
Documentation: https://docs.contao.org/dev/