Skip to content

IBX-10116 ibexa_render() does not use decorated fragment renders #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 4.6
Choose a base branch
from

Conversation

vidarl
Copy link
Contributor

@vidarl vidarl commented Jun 5, 2025

🎫 Issue IBX-10116

Description:

Decorations of the fragment renders are not available for the ibexa_render() renderers (Ibexa\Core\MVC\Symfony\Templating\RenderLocationStrategy). This is because all renders are tagged kernel.fragment_renderer, both the original services, and the decorating ones! As the renders are stored in a hash array, the original services overwrites the decorating ones.

The result is that for instance the siteaccess is not serialized in esi calls when using ibexa_render() ( but it is if using render_esi(Controller())

This PR uses same approach as https://github.com/symfony/http-kernel/blob/v5.4.48/DependencyInjection/LazyLoadingFragmentHandler.php#L44-L47

For QA:

See ticket for How-to-reproduce instructions

Documentation:

Copy link

sonarqubecloud bot commented Jun 5, 2025

@vidarl vidarl requested a review from a team June 5, 2025 12:56
@ezrobot ezrobot requested review from adamwojs, mikadamczyk, Steveb-p, alongosz, ciastektk, ViniTou, barw4, wiewiurdp, konradoboza and tbialcz and removed request for a team June 5, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants