Conversation
Ibexa\Bundle\Core\Routing\DefaultRouter is now a decorator in ibexa/core and no longer extends the FrameworkBundle Router, so the templated router service wraps an inner hautelook.router.template child instead of inheriting its definition.
ViniTou
force-pushed
the
ibx-12046-default-router-decorator
branch
3 times, most recently
from
September 10, 2026 10:50
32cda33 to
7ec0134
Compare
mikadamczyk
approved these changes
Sep 10, 2026
ViniTou
force-pushed
the
ibx-12046-default-router-decorator
branch
from
September 10, 2026 12:50
7ec0134 to
7caba4a
Compare
konradoboza
approved these changes
Sep 11, 2026
…ed_router The REST-owned RFC 6570 router instance was registered under core's class name, which misrepresents what it is and captures autowiring of Ibexa\Bundle\Core\Routing\DefaultRouter for every bundle. The old id stays as a deprecated alias for one release; both in-repo consumers now inject ibexa.rest.templated_router explicitly.
ViniTou
force-pushed
the
ibx-12046-default-router-decorator
branch
from
September 14, 2026 10:57
7caba4a to
44224cd
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Related PRs:
Description:
Companion to ibexa/core#822, which turns
Ibexa\Bundle\Core\Routing\DefaultRouterinto a decorator ofrouter.defaultinstead of a subclass of the@finalFrameworkBundle Router. The REST templated URI router (RFC 6570 hrefs in the root resource and value object visitors) was declared as aDefaultRouterservice withparent: hautelook.router.template, which hands the FrameworkBundle Router constructor arguments to the new decorator and fails to instantiate.The templated router is now registered as
ibexa.rest.templated_router(wrapping a newibexa.rest.templated_router.innerchild ofhautelook.router.template);ExpressionRouterRootResourceBuilderandValueObjectVisitor::setTemplateRouter()inject it explicitly. The old idIbexa\Bundle\Core\Routing\DefaultRouterstays as a deprecated alias for one release: it named a REST-owned, differently configured instance after core's class and captured autowiring of that type for every bundle. Test kernels in cart, checkout and segmentation still call$container->set(DefaultRouter::class, …); withHautelookTemplatedUriBundleregistered in all three that override is not load-bearing (verified here by booting the REST integration kernel against the core#822 branch), but they can move to the new id at leisure. Behaviour is unchanged: as before, no SiteAccess is injected into this router and REST routes are configured as non-SiteAccess-aware, so generated hrefs are identical.Merge order: ibexa/core#822 first, this PR second. This PR alone (against the current core) breaks container compilation because the current
DefaultRouterconstructor is the FrameworkBundle Router one; core#822 alone breaks REST because of the oldparent:definition. Neither should be released without the other.CI:
Verified green at 7caba4a with a temporary
[TMP]dependencies.jsonpin to ibexa/core#822 plus a temporary switch of the unit/integration job to the sharedcomposer-installaction (since dropped, no longer part of this PR):Without that pin, this PR's own CI against the current core fails at container compilation until core#822 is merged.
For QA:
REST root resource (
/api/ibexa/v2/) and any response with templated hrefs ({contentId}style URIs) render as before;cache:warmupanddebug:container Ibexa\Bundle\Core\Routing\DefaultRoutersucceed with core#822 installed.Documentation:
N/A