Skip to content

Conversation

@Kocal
Copy link
Member

@Kocal Kocal commented Nov 22, 2025

Q A
Bug fix? no
New feature? yes
Deprecations? no
Documentation? no
Issues Fix #...
License MIT

Comment on lines +68 to +71
// Mercure >= 0.7: https://github.com/symfony/mercure/pull/123
$mercure = is_subclass_of(MercureExtension::class, AbstractExtension::class)
? $this->twig->getExtension(MercureExtension::class)
: $this->twig->getRuntime(MercureExtension::class);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the right fix:

Twig\Error\RuntimeError: Unable to load the "Symfony\Component\Mercure\Twig\MercureExtension" runtime in "__string_template__7a4a2a32007f60b7cab5dd9f0e6f1f34" at line 1.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be fixed by symfony/mercure-bundle#110

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thanks! 😍

@Kocal
Copy link
Member Author

Kocal commented Nov 22, 2025

Waiting for symfony/mercure-bundle#110 to be merged/released, then the constraint must be upgraded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Feature Notify Status: Needs Work Additional work is needed Turbo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants