…mercure stuff was moved into ux-turbo in 2.6.1. It sounds like you're coding along with our tutorial code. In that case, you should follow the directions in the original video: you WILL need to install the separate `symfony/ux-turbo-mercure…
…turbo/blob/8cb9d59452e0e8d59c7bfb3634ee2665926f3440/src/Twig/TwigExtension.php#L46) line.
Do I have something configured incorrectly? I also noticed that my `/assets/controllers.json` file was never changed after installing Mercure like Ryan's was. Does symfony/mercure-bundle need to register a controller there?
Thx…
…And voila!
```
➜ symfony var:export --multiline
...
export MERCURE_PUBLIC_URL=http://127.0.0.1:64733/.well-known/mercure
export MERCURE_URL=http://127.0.0.1:64733/.well-known/mercure
...
```
I'm certain the MERCURE variables weren't there before, but I was probably serving…
…MERCURE_ variables are never in my list of exported variables no matter what I try. Can you offer some assistance? Here are snippets of some relevant configurations:
composer.json - Expected version when using Symfony 5.4.*
```
"symfony/mercure-bundle": "^0.3.5",
```
package.json
```
...
"@hotwired…
…there are a few things that I need to look into - like much better support in API Platform 3 for DTO objects - that might affect exactly what's in each episode or how we split it all up.
> Are you going to cover Mercure…
…custom resources]. I also have more questions. Are you going to cover Mercure? When are you going to release all 3 parts (I read comment from SC team member who claimed that it would be released by the end of the year, but it was…
…s basically like you want to do polling to ask for the "latest state" for some component, but without the polling.
The way we typically do this in Symfony is with Mercure: it's a modern solution that serves the same purpose as Websockets. Basically…
…would scale my Mercure instance based on how many concurrent users I need.
Let me know if this helps - it CAN be tricky to get right. Another thing to consider (based on your situation) is that you COULD send 100 updates to Mercure without slowing…
…via Messenger to avoid sending 25 POST requests from your app while the user is waiting for their comment to be posted) and Mercure (depending on your install) could get overwhelmed/limited if you send TOO many requests too quickly (the pricing page talks about…
…have a real web server set up like Apache or Nginx?
Also, please see the TIP in this chapter about the latest symfony binary no longer embeds Mercure. But it's still easy to set up, just follow the instructions in that TIP note.
Cheers…
…different broadcasts
Yea... I didn't want to get into the weeds with this, since this tutorial isn't strictly about Mercure. But it's definitely a missing piece.
> 1) I have a "buyer" and a "seller" Entity, when one buys from the other…
…is actually on the page be updated, but I'm concerned that one could look at his Mercure stream and see information that he shouldn't (like the "real" price the seller gets).
2) A Facebook-like notification system, where you get notified only on…
…your docker-compose.yaml file (but it's untested by my at the moment):
```
# docker-compose.yaml
# ...
services:
# ...
mercure:
image: dunglas/mercure
command: caddy run -config /etc/caddy/Caddyfile.dev
ports: ['80']
environment:
SERVER_NAME: ':80'
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'
MERCURE_SUBSCRIBER_JWT_KEY: '…
…an update needs to be pushed to" may not be such an important thing.
Again, this is mostly guess work - we don't (yet) have Mercure on production (though I'm guessing we will have it at some point in the next few months).
Cheers!
…have a simple explanation for you, depending on what you're trying to achieve.
It is this: in order to use the Mercure hub in your dev environment with the symfony binary web server, you need ZERO docker config. This is different than the Symfony…
…in some way. There are various ways to do this, but the recommended way in our world for sure is Mercure: https://github.com/symfony/mercure-bundle
Unfortunately, we don't have a tutorial on it yet - it's highly asked for. But I hope…
Thanks, i don't really undertstand what is RabitMQ and the Messenger component for now. And my Frenglish don't help me, fortunatly i have subtitles. I saw a conference of Kevin Dunglas in french, about Mercure and it seems really great.
Regards.
…late at this point. What workaround did you do?
> a message board (mercure fetched from middleware or manual dispatch of events) similar to what Laravel Horizon does it
In 4.3... when I added a BUNCH of features to Messenger, a Horizon-like this…
…for the DelayStamp which I hacked around; a redis-cli interpretation for reading the pub/sub streams and a message board (mercure fetched from middleware or manual dispatch of events) similar to what Laravel Horizon does it.
At work, we implemented this transport because it…
…my code in ArticleFixtures:
class ArticleFixtures extends BaseFixture implements DependentFixtureInterface
{
private static $articleTitles = [
'Why Asteroids Taste Like Bacon',
'Life on Planet Mercury: Tan, Relaxing and Fabulous',
'Light Speed Travel: Fountain of Youth or Fallacy',
];
private static $articleImages = [
'asteroid.jpeg',
'mercury.jpeg',
'lightspeed.png',
]…
x
131