Skip to content

Commit 8f46ee3

Browse files
[framework-bundle] Remove options that match the defaults in 7.0 (#1237)
1 parent bd035c4 commit 8f46ee3

File tree

7 files changed

+51
-9
lines changed

7 files changed

+51
-9
lines changed

symfony/framework-bundle/7.0/config/packages/framework.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,12 @@
22
framework:
33
secret: '%env(APP_SECRET)%'
44
#csrf_protection: true
5-
handle_all_throwables: true
65

7-
# Enables session support. Note that the session will ONLY be started if you read or write from it.
8-
# Remove or comment this section to explicitly disable session support.
9-
session:
10-
handler_id: null
11-
cookie_secure: auto
12-
cookie_samesite: lax
6+
# Note that the session will be started ONLY if you read or write from it.
7+
session: true
138

149
#esi: true
1510
#fragments: true
16-
php_errors:
17-
log: true
1811

1912
when@test:
2013
framework:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
framework:
2+
router:
3+
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
4+
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
5+
#default_uri: http://localhost
6+
7+
when@prod:
8+
framework:
9+
router:
10+
strict_requirements: null
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
controllers:
2+
resource:
3+
path: ../src/Controller/
4+
namespace: App\Controller
5+
type: attribute

symfony/routing/7.0/manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"aliases": ["router"],
6+
"conflict": {
7+
"symfony/framework-bundle": "<7.0"
8+
}
9+
}

symfony/uid/7.0/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"conflict": {
3+
"symfony/framework-bundle": "<7.0"
4+
}
5+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
framework:
2+
validation:
3+
# Enables validator auto-mapping support.
4+
# For instance, basic validation constraints will be inferred from Doctrine's metadata.
5+
#auto_mapping:
6+
# App\Entity\: []
7+
8+
when@test:
9+
framework:
10+
validation:
11+
not_compromised_password: false

symfony/validator/7.0/manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"aliases": ["validation"],
6+
"conflict": {
7+
"symfony/framework-bundle": "<7.0"
8+
}
9+
}

0 commit comments

Comments
 (0)