131 search results

Mercure: Pushing Stream Updates Async

…its own tutorial, so we'll just cover the basics. Mercure is a "service" that you run, kind of like your database service, Elasticsearch or Redis. It allows, in JavaScript for example, to subscribe to messages. Then, in PHP, we can publish messages to Mercure

4:43
Running the Mercure Service in the symfony Binary

…we don't even need these variables in this file! Why? Well, in addition to setting up Mercure for us, the Symfony binary also sets these environment variables automatically to their correct values. Check it out. Back over in our editor, open public/index.php…

4:28
Mercure Hub's JWT Authorization

…if you mess around with its contents, the signature will fail. That's why the Mercure Hub trusts us when we send a JWT that says we can publish to any topic: the signature of our message is valid. That means it was generated by…

6:58
Mercure : des UIs toujours synchronisées avec la BDD (Kévin Dunglas)

…disponibilités, commentaires…) est modifiée dans le système de persistence ? Mercure permet aux serveurs de "pousser" des mises à jour en temps réel à tous types de clients. Mercure est auto-découvrable, conçu dès le départ pour être utilisé avec des API hypermedia ou GraphQL…

44:16
Publishing Mercure Updates in PHP

…which is a heck of a lot simpler anyways. Copy the ... then go find ProductController... and the reviews action. To publish updates to a Mercure Hub, we need to autowire a new service. Use HubInterface and I'll call it $mercureHub. Down below…

3:47
Des apps Symfony sous stéroïdes grâce à Vue.js, Mercure et Panther ! (Kévin Dunglas)

…de test E2E de Symfony qui est capable d'exécuter le JavaScript afin de progressivement améliorer nos applications grâce à JavaScript. Finalement, nous découvrirons comment l'intégration du protocole Mercure dans Symfony permet de "pusher" des mises à jour de données réelles vers les clients.

44:16
Listening & Publishing

…sending some JSON data, which is passed to anyone listening to this topic. At the end of the command, we're making this a POST request to our Mercure Hub URL. But what about this Authorization: Bearer part... with this super long key? What's…

5:42
Entity Broadcast

…whenever a review is added to the system, regardless of how or where it's added? Or what if we could publish a Mercure update whenever a review is changed... like if we changed a review in an admin area, that review would automatically re…

7:02
Smartly Updating Elements for all Users

With the power to return a normal redirect from our controller and publish a Mercure update to modify any part of any user's page, we can now really clean up our review system. After a successful form submit, we redirect to a page that…

7:06
Symfony Live Lille 2019 (French)

…avec 130 participants qui sont venus assister à une journée complète de talks sur Symfony. Une dizaine de speakers sont venus présenter des sujets sur Symfony (évidemment), mais aussi Mercure, Doctrine, API Platform ou encore React et Redux ainsi que des bonnes pratiques sur les…

7 videos
|
4:30:19
Symfony Live Paris 2019 (French)

…des talks sur Symfony et son écosystème HttpClient, React-admin, Elasticsearch, Mercure et Panther, RabbitMQ et bien d’autres sujets tout aussi passionnants ! Vous êtes prêt à regarder (ou revoir) les présentations ? Les vidéos sont disponibles pour tous les abonnés SymfonyCasts et à tous les…

16 videos
|
10:51:05
File Uploads & Data Fixtures

…to either asteroid.jpeg, mercury.jpeg or lightspeed.png. This worked before because those images are committed to our repository in the public/images directory and we were pointing to that path in our template. When we run doctrine:fixtures:load, it does create 10…

9:49
Installing API Platform

…admin area, scaffolding to create a Next.js frontend and more. Heck, it even gives you a production-ready web server with extra tools like Mercure for real-time updates. It's the most powerful way to use API Platform. But... in this tutorial, we…

7:29
Worker Command

…instead of me needing to refresh the page... but that's a totally different topic, and one that's covered by the Mercure component in Symfony. And... that's it! This messenger:consume command is something that you'll have running on production all the…

5:34
Turbo Stream Responses

…this chat topic. The content of that Update is a set of Turbo Streams. I'll scroll down to that template. So we publish streams... those streams are sent to frontend via Mercure, and Turbo processes them. On the frontend, it might look like this…

4:24
Turbo: Drive, Frames & Streams!

…inside your Symfony app. Crazy, right? When you use Turbo Streams along with Mercure, this can even give you the ability to make a real time chat app... while writing zero JavaScript. And you're free to use all three parts... or just one or…

5:03
Turbo Stream for Instant Review Update

…s what renderView() gives us. Thanks to this, our controller will now redirect like it did before... but it will also publish a stream to Mercure along the way. Let's try it. Refresh the page... and scroll all the way down to the bottom…

8:50
Handling the Form Submit

…final, normalized data that was submitted. Phew! So, let's try it! Find your browser and create a very important article about the booming tourism industry on Mercury. Submit! Yes! It dumps out exactly what we probably expected: an array with title and content keys…

8:44
Form Events & Dynamic ChoiceType choices

…just because I want the display values and the values set back on my entity to be the same. This is equivalent to saying 'Mercury' => 'Mercury'... but saves me some duplication. The first step to get this working is not so different from something…

6:01
Visually Highlighting new Items that Pop onto the Page

…nice is that? Ok team, we're currently publishing updates to Mercure from inside of our controller. But the Mercure Turbo UX package that we installed earlier makes it possible to publish updates automatically whenever an entity is updated, added or removed. It's pretty…

5:26