Skip to content

Add symfony/messenger recipe #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
12 commits merged into from
May 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions symfony/amqp-pack/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"aliases": ["amqp"]
}
9 changes: 9 additions & 0 deletions symfony/messenger/4.1/config/packages/messenger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
framework:
messenger:
transports:
# Uncomment the following line to enable a transport named "amqp"
# amqp: '%env(MESSENGER_ADAPTER_DSN)%'

routing:
# Route your messages to the transports
# 'App\Message\YourMessage': amqp
9 changes: 9 additions & 0 deletions symfony/messenger/4.1/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "MESSENGER_ADAPTER_DSN=amqp://guest:guest@localhost:5672/%2f/messages"
},
"aliases": ["messenger"]
}
17 changes: 17 additions & 0 deletions symfony/messenger/4.1/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> What's next? </>
<bg=blue;fg=white> </>

* You're ready to use the Messenger component. You can define your own message buses
or start using the default one right now by injecting the <info>messenger.bus.default</info> service
or typehinting <info>Symfony\Component\Messenger\MessageBusInterface</info> in your code.

* If you need to send messages to your broker, you can benefit from the built-in
AMQP transport by:

1. Installing the AMQP pack by running <info>composer require amqp</>;
2. Uncommenting the <comment>MESSENGER_ADAPTER_DSN</> env var
and <comment>framework.messanger.transports.amqp</> config;
3. Routing your messages to the amqp sender.

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