From 678f1c395f43081284ce35e390cb8a4618e89821 Mon Sep 17 00:00:00 2001 From: David Greminger Date: Mon, 10 Mar 2025 17:35:03 +0100 Subject: [PATCH] Update recipe for Contao 5.x --- .../5.0/config/packages/contao_core.yaml | 10 ++++++++ contao/core-bundle/5.0/manifest.json | 25 +++++++++++++++++++ contao/core-bundle/5.0/post-install.txt | 9 +++++++ 3 files changed, 44 insertions(+) create mode 100644 contao/core-bundle/5.0/config/packages/contao_core.yaml create mode 100644 contao/core-bundle/5.0/manifest.json create mode 100644 contao/core-bundle/5.0/post-install.txt diff --git a/contao/core-bundle/5.0/config/packages/contao_core.yaml b/contao/core-bundle/5.0/config/packages/contao_core.yaml new file mode 100644 index 000000000..8969b8f2e --- /dev/null +++ b/contao/core-bundle/5.0/config/packages/contao_core.yaml @@ -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 diff --git a/contao/core-bundle/5.0/manifest.json b/contao/core-bundle/5.0/manifest.json new file mode 100644 index 000000000..f9f6875c2 --- /dev/null +++ b/contao/core-bundle/5.0/manifest.json @@ -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" + ] +} diff --git a/contao/core-bundle/5.0/post-install.txt b/contao/core-bundle/5.0/post-install.txt new file mode 100644 index 000000000..0bbf4653c --- /dev/null +++ b/contao/core-bundle/5.0/post-install.txt @@ -0,0 +1,9 @@ + * Enable ESI in the config/packages/framework.yaml file. + + * Add the Contao routes to your config/routing.yaml file and + make sure they are loaded at the very end. + + * Edit your config/security.yaml file and include all the + necessary providers, firewalls and access control sections. + +Documentation: https://docs.contao.org/dev/