Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Notifier] Add mercure bridge#39342
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
57546cd to7b886bfCompare
jderusse left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Could you please add files
- phpunit.xml.dist
- README.md
Uh oh!
There was an error while loading.Please reload this page.
f366f12 tob1cb35dCompareUh oh!
There was an error while loading.Please reload this page.
b1cb35d to7c4465bCompareOskarStark commentedDec 6, 2020
friendly ping@dunglas 🙂 |
dunglas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you very much for working on this! I think we can make this transport a bit more generic, but it's almost good!
src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
faa0539 tof2af0e1Comparemtarld commentedDec 8, 2020
In order to make it work,symfony/mercure-bundle#36 has to be merged. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
f2af0e1 to69d6bb3Compare
chalasr left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👍
dunglas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
for consistency
src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
0ecb759 tof9ed6b8Comparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransportFactory.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
9695088 to564a77fCompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportFactoryTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
564a77f to19c6544CompareOskarStark commentedJan 20, 2021
Thanks Mathias for working on this feature, this is much appreciated. |
This PR was merged into the 5.3-dev branch.Discussion----------[Notifier] Add Mercure notifier documentationDocumentation related tosymfony/symfony#39342.Commits-------475a87d [Notifier] Add Mercure notifier documentation
This PR was merged into the 2.x branch.Discussion----------[Notify] Add Notify bundle| Q | A| ------------- | ---| Bug fix? | no| New feature? | yes| Tickets || License | MITIn Symfony 5.3, Notifier was shipped with a Mercure bridge (symfony/symfony#39342)Then, with a simple `$this->notifier->send(new Notification('My message', ['chat/mercure']));` (and a running Mercure server), it'll be easy to create "Server-Sent-Events".Therefore, the Notify bundle idea is to listen to these events using JavaScript event sourcing and convert them as native HTML5 notifications (using the `{{ stream_notifications() }}` Twig function).(The "Notify" name was the first that came to my mind a could/should be challenged)Commits-------e02a362 [Notify] Add Notify library
Uh oh!
There was an error while loading.Please reload this page.
Add a Notifier bridge for Mercure.
In this PR, Mercure is considered as a chatter (I'm still wondering if it's the most appropriate type).
The first approach for the DSN is
mercure://jwtToken@host:port/hubPath?topic=/foo/1&secure=falsewith:topicoptional (defaults tonull)secureoptional (defaults totrue)I'm not sure about the current way to deal with http/https. Maybe we can just replace the
mercurescheme byhttp|https?The notification representation is followingActivity Streams
#SymfonyHackday