Updated framework-bundle recipe

This commit is contained in:
Jan Böhmer 2025-07-13 16:40:14 +02:00
parent a58fcd94dd
commit 6137065b4e
7 changed files with 31 additions and 16 deletions

View file

@ -1,9 +1,6 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
csrf_protection: true
annotations: false
handle_all_throwables: true
# We set this header by ourselves, so we can disable it here
disallow_search_engine_index: false
@ -30,8 +27,6 @@ framework:
#esi: true
#fragments: true
php_errors:
log: true
when@test:
framework:

View file

@ -1,4 +1,4 @@
when@dev:
_errors:
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
resource: '@FrameworkBundle/Resources/config/routing/errors.php'
prefix: /_error

View file

@ -29,10 +29,6 @@ services:
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class