Symfony 7.4 / Twig / Doctrine DBAL auf herkömmlichem PHP-Webhosting. Versionierte Blockdokumente (v1-v3) mit unveränderlichen Revisionen, getrennten Entwürfen/Veröffentlichungen und optimistischer Konflikterkennung. Visueller Editor mit Strukturbaum, Live-Vorschau, responsiven Gerätewerten, Abschnittsvorlagen, Bildmediathek, Galerien und Effekten. Öffentliche Ausgabe ohne Editor-JavaScript. Geprüft: 41 PHP-Tests / 155 Assertions, 10 JavaScript-Modelltests. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
30 lines
904 B
YAML
30 lines
904 B
YAML
security:
|
|
password_hashers:
|
|
App\Domain\CmsUser: auto
|
|
providers:
|
|
cms_users:
|
|
id: App\Security\UserProvider
|
|
role_hierarchy:
|
|
ROLE_ADMIN: [ROLE_EDITOR, ROLE_PUBLISHER]
|
|
ROLE_PUBLISHER: ROLE_EDITOR
|
|
firewalls:
|
|
admin:
|
|
pattern: ^/admin(?:/|$)
|
|
lazy: true
|
|
provider: cms_users
|
|
form_login:
|
|
login_path: admin_login
|
|
check_path: admin_login
|
|
enable_csrf: true
|
|
default_target_path: admin_pages
|
|
login_throttling:
|
|
max_attempts: 5
|
|
interval: '1 minute'
|
|
logout:
|
|
path: admin_logout
|
|
target: admin_login
|
|
enable_csrf: true
|
|
access_control:
|
|
- { path: ^/admin/login$, roles: PUBLIC_ACCESS }
|
|
- { path: ^/admin, roles: ROLE_EDITOR }
|