Skip to content

Commit

Permalink
[framework-bundle] Remove options that match the defaults in 7.0 (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas authored Jan 18, 2024
1 parent bd035c4 commit 8f46ee3
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 9 deletions.
11 changes: 2 additions & 9 deletions symfony/framework-bundle/7.0/config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@
framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
handle_all_throwables: true

# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
session:
handler_id: null
cookie_secure: auto
cookie_samesite: lax
# Note that the session will be started ONLY if you read or write from it.
session: true

#esi: true
#fragments: true
php_errors:
log: true

when@test:
framework:
Expand Down
10 changes: 10 additions & 0 deletions symfony/routing/7.0/config/packages/routing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
framework:
router:
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
#default_uri: http://localhost

when@prod:
framework:
router:
strict_requirements: null
5 changes: 5 additions & 0 deletions symfony/routing/7.0/config/routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
controllers:
resource:
path: ../src/Controller/
namespace: App\Controller
type: attribute
9 changes: 9 additions & 0 deletions symfony/routing/7.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["router"],
"conflict": {
"symfony/framework-bundle": "<7.0"
}
}
5 changes: 5 additions & 0 deletions symfony/uid/7.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"conflict": {
"symfony/framework-bundle": "<7.0"
}
}
11 changes: 11 additions & 0 deletions symfony/validator/7.0/config/packages/validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
framework:
validation:
# Enables validator auto-mapping support.
# For instance, basic validation constraints will be inferred from Doctrine's metadata.
#auto_mapping:
# App\Entity\: []

when@test:
framework:
validation:
not_compromised_password: false
9 changes: 9 additions & 0 deletions symfony/validator/7.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["validation"],
"conflict": {
"symfony/framework-bundle": "<7.0"
}
}

0 comments on commit 8f46ee3

Please sign in to comment.