131 search results

…with it. For example, you might use the Symfony serializer to publish new or updated JSON representations of some API resource so that you could update that data in React from Mercure instantly. I know that's a bit of a generic description, but let…
weaverryan
weaverryan
Read Full Comment
…menu item) etc My first thing to try would also be a "general topic" for this. You at least then know that every user has just "one" Mercure connection (not counting private chats) and not multiple at the same time (e.g. one for notifications…
weaverryan
weaverryan
Read Full Comment
…some things. We use Mercure and Symfony for our Event app and website (mobile app and website for Conference organizers and attendees). For now we use this for Chat but there are multiple cases we are thinking about to use Mercure for communication. For instance…
…answer. I see. When I used the symfony binary plus the Symfony Local Web Server I had no problems using the Mercure hub and I had nothing to configure. But I want to use/test Turbo Streams in a "real" project with my team. And…
TristanoMilano
TristanoMilano
Read Full Comment
14 lines | public/index.php
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
dd(array_filter($_SERVER, function($item) {
return str_contains($item, 'MERCURE');
}, ARRAY_FILTER_USE_KEY));
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
See Code Block in Script
Hey Axel! We'll cover that :). Well, specifically Turbo and Mercure - there is absolutely a built-in feature for having a section of your site subscribe for updates and have them added automatically. It's pretty sweet. Cheers!
weaverryan
weaverryan
Read Full Comment
Hey ahmedbhs In that case, I think you will need some sort of push notifications, you can check out the Symfony Mercure component. Or, another thing you can do is to email the pdf to the user... or, if you like being old school, you…
MolloKhan
MolloKhan
Read Full Comment
…if RabbitMQ fit your needs, have you give it a try? Also, if you really want push notifications you may be interested in the Symfony Mercure component (https://symfony.com/doc/current/mercure.html ). I've never used it before but it seems solid Cheers!
MolloKhan
MolloKhan
Read Full Comment
…it, absolutely :). The JWT that you configure with MecureBundle will be used to communicate and authenticate against your Mecure *hub*, *not* your Symfony app. Basically, when you set up the Mercure Hub, you configure some secret key (not a JWT) on the `JWT_KEY` setting…
weaverryan
weaverryan
Read Full Comment
Hi Thank you for this great tutorial. Is it possible to implement the json_login authentication with Mercure knowing that API Platform doc https://api-platform.com/docs/core/mercure/#installing-mercure-support, they are using JWT. My main goal is to secure the API…
Thank you for your detailed answer! In fact, I would have to be very careful. I saw that you were planning to do some training on Mercury in the future, this may be an opportunity for you to talk about it :)
…tutorials. Yes, we do plan a tutorial about Turbo... and it might happen this year. About Mercury - I'm not sure, but most probably it might be covered / partially covered in that Turbo tutorial. Though, we don't have specific plans for this yet, and…
…installing project code source. Articles' thumbnails (for example http://localhost:8000/media/cache/resolve/squared_thumbnail_small/article_image/mercury-5e84d2b2a3664.jpeg) give response with 500 error 'Unable to create image for path "article_image/mercury-5e84d2b2a3664.jpeg" and filter "squared_thumbnail_medium". Message was …
Dariia M.
Dariia M.
Read Full Comment
…though I understand it's not ideal at all, at least a temporary workaround. Unfortunately, I don't have much experience with Docker and Mercure, can't help much with it. But I think the symfony's CLI proxy thing is the best and robust…
…Run `composer install` The problem still persists. I try your TIP and run ``` git grep "graphql" composer.lock: "api-platform/graphql": "For GraphQl mercure subscriptions.", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock…
skocdopolet
skocdopolet
Read Full Comment
…turbo-core" controller in package "symfony/ux-turbo", defined in controllers.json.").` i use asset-mapper and my controller.json file seem good : ```json { "controllers": { "@symfony/ux-turbo": { "turbo-core": { "enabled": true, "fetch": "eager" }, "mercure-turbo-stream": { "enabled": false, "fetch": "eager" } } }, "entrypoints": [] } ``` what i missing ?
Ludovic-J
Ludovic-J
Read Full Comment
…to have the client periodically check the API for the status. - WebSockets - For a real-time update approach, consider using WebSockets or a service like Mercure to push a message to the client when the process completes. You can store documents in a secure location…
…is - that would be great! > It is amazing when you get symfony ux in there. I add/remove rows on my index pages and update menu badges in real time with mercure and turbo streams from webhooks. Also, overriding any of the form templates…
weaverryan
weaverryan
Read Full Comment
…the javascript files into chatgpt and convert them all to stimulus controllers. It is amazing when you get symfony ux in there. I add/remove rows on my index pages and update menu badges in real time with mercure and turbo streams from webhooks. Also…
…but haven't dug very deep because it's kind of hard to know where live components are superior to stimulus. I do love mercure too, I hope this touches on that. I'm about to ramp up dev on a new SaaS and would…