Skip to content

Commit e712482

Browse files
Update recipes 2025-10-01 (#159)
1 parent 8818e38 commit e712482

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

symfony/routing/7.4/config/packages/routing.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
return static function (ContainerConfigurator $containerConfigurator): void {
88
$containerConfigurator->extension('framework', [
9-
'router' => null,
9+
'router' => [
10+
'default_uri' => '%env(DEFAULT_URI)%',
11+
],
1012
]);
1113
if ($containerConfigurator->env() === 'prod') {
1214
$containerConfigurator->extension('framework', [

symfony/routing/7.4/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
"aliases": ["router"],
66
"conflict": {
77
"symfony/framework-bundle": "<7.0"
8+
},
9+
"env": {
10+
"#1": "Configure how to generate URLs in non-HTTP contexts, such as CLI commands.",
11+
"#2": "See https://symfony.com/doc/current/routing.html#generating-urls-in-commands",
12+
"DEFAULT_URI": "http://localhost"
813
}
914
}

0 commit comments

Comments
 (0)