Kevin Bond
Kevin Bond
Hmm, I don't think there's anything we can do in the bundle about this. I think it would be more asset-mapper or maybe tailwind itself?
Hi @ghuisman19, are you using this bundle standalone (not with Symfony)?
Ah ok, understood. In version 2 of this package, we switched to using a [twig runtime](https://twig.symfony.com/doc/3.x/advanced.html#definition-vs-runtime) for performance reasons. So when using standalone, in addition to the extension, you also...
Ok, here's what will work for you (but you still need a translator - see comment): ```php self::$twig->addExtension(new \Knp\Bundle\TimeBundle\Twig\Extension\TimeExtension()); self::$twig->addRuntimeLoader(new Twig\RuntimeLoader\FactoryRuntimeLoader([ Knp\Bundle\TimeBundle\DateTimeFormatter::class => function() { return new DateTimeFormatter(???); // you...
If you're only dealing with English, there aren't many translations you'd need. You could use the example to fill them in by looking at [this file](https://github.com/KnpLabs/KnpTimeBundle/blob/main/translations/time.en.xliff): ```php $translator = new...
In the [blog post](https://symfony.com/blog/new-in-symfony-7-3-messenger-improvements#deduplication-middleware) about this it says: > ...that automatically filters out identical messages based on their _body content_. If a message with the same content is already in...
What about: ```php use Symfony\Component\Messenger\Stamp\DeduplicateStamp; $message = new MyMessage('...'); $bus->dispatch($message, [ // generate a unique key that changes when the message changes // (e.g. use primary keys, hashes of the...
Good call. I think we should add a bit more context to the key to avoid conflicts: ```php $message = new MyMessage('...'); // Here we'll use the project ID as...
Thanks Simon.
In my packages, I'd make `IconRenderer` autowireable but in Symfony core, I believe interfaces are preferred, even if there's only 1 implementation. It's easier for someone to decorate. @smnandre, is...