Skip to content

Commit e0eb3d6

Browse files
authored
Remove MESSENGER_TRANSPORT_DSN from webapp-pack and enable one in messenger (#1175)
1 parent b1176e3 commit e0eb3d6

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

symfony/messenger/6.0/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
},
55
"env": {
66
"#1": "Choose one of the transports below",
7-
"#2": "MESSENGER_TRANSPORT_DSN=doctrine://default",
8-
"#3": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages",
9-
"#4": "MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages"
7+
"#2": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages",
8+
"#3": "MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages",
9+
"MESSENGER_TRANSPORT_DSN": "doctrine://default?auto_setup=0"
1010
},
1111
"aliases": ["messenger"],
1212
"conflict": {

symfony/messenger/6.0/post-install.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
* To send messages to a transport and handle them asynchronously:
66

7-
1. Uncomment the <info>MESSENGER_TRANSPORT_DSN</> env var in <comment>.env</>
7+
1. Update the <info>MESSENGER_TRANSPORT_DSN</> env var in <comment>.env</> if needed
88
and <info>framework.messenger.transports.async</> in <comment>config/packages/messenger.yaml</>;
9-
2. Route your message classes to the async transport in <comment>config/packages/messenger.yaml</>.
9+
2. (if using Doctrine) Generate a Doctrine migration <info>bin/console doctrine:migration:diff</>
10+
and execute it <info>bin/console doctrine:migration:migrate</>
11+
3. Route your message classes to the async transport in <comment>config/packages/messenger.yaml</>.
1012

1113
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/current/messenger.html</>

symfony/webapp-pack/1.0/manifest.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
"aliases": ["webapp"],
33
"copy-from-recipe": {
44
"config/": "%CONFIG_DIR%/"
5-
},
6-
"env": {
7-
"MESSENGER_TRANSPORT_DSN": "doctrine://default?auto_setup=0"
85
}
96
}

0 commit comments

Comments
 (0)