Skip to content

Commit 2d6757a

Browse files
committed
Update symfony/routing recipe
1 parent 819e8d8 commit 2d6757a

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

.env.dirigent

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,9 @@ MAILER_DSN=smtp://127.0.0.1:1025
4545
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
4646
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
4747
###< symfony/messenger ###
48+
49+
###> symfony/routing ###
50+
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
51+
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
52+
DEFAULT_URI=http://localhost
53+
###< symfony/routing ###

config/packages/routing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ framework:
22
router:
33
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
44
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
5-
#default_uri: http://localhost
5+
default_uri: '%env(DEFAULT_URI)%'
66

77
when@prod:
88
framework:

docker/env.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
'DECRYPTION_KEY' => '',
99
'DECRYPTION_KEY_FILE' => '/srv/config/secrets/decryption_key',
10+
'DEFAULT_URI' => 'http://localhost',
1011
'ENCRYPTION_KEY' => '',
1112
'ENCRYPTION_KEY_FILE' => '/srv/config/secrets/encryption_key',
1213
'GITHUB_TOKEN' => '',

symfony.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)