Skip to content

WIP: Update recipe for Contao 5.x #1760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions contao/core-bundle/5.0/config/packages/contao_core.yaml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions contao/core-bundle/5.0/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
9 changes: 9 additions & 0 deletions contao/core-bundle/5.0/post-install.txt
Original file line number Diff line number Diff line change
@@ -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/