Skip to content

feat(routing): swap illuminate/routing to ^13 (task 4.3) - #79

Draft
agissept wants to merge 1 commit into
pre-release/4.2.107from
pre-release/4.2.108
Draft

agissept wants to merge 1 commit into
pre-release/4.2.107from
pre-release/4.2.108

Conversation

@agissept

Copy link
Copy Markdown
Member

Task 4.3 — routing swap (illuminate/routing v13)

Ninth sub-unit of Wave 4.3. Moves illuminate/routing from replace to require ^13 (v13.33.0); v13's Routing tree shadows the fork via PSR-4 (seed mechanism). This removes the fork Router's before/after/filter global-filter engine — the last of the task 2.8 filter surface (part 2).

Foundation: global before/after without a Router filter engine

App::before/App::after used to delegate to $this['router']->before/after(). v13's Router has no global-filter concept, so the app (which has no HTTP Kernel to host global middleware) now stores those callbacks on the Application and runs them around the route dispatch:

  • before callbacks run pre-dispatch, with response short-circuit (L4.2 semantics preserved);
  • after callbacks wrap the dispatched response.

CachedRouting evaporated early

Illuminate\CachedRouting\Router overrides L4.2 Router internals gone in v13 and can't even compile against v13's public newRoute(). The routing swap forces this component's removal ahead of task 4.4. Its src/ + tests deleted (app drops the provider registration in the matched-pair PR).

Deleted vendored-behavior tests

Now assert v13-owned internals: tests/Routing/{RoutingRouteTest,RoutingUrlGeneratorTest,RoutingRedirectorTest,RoutingControllerDispatcherTest}, tests/Support/SupportFacadeResponseTest, tests/CachedRouting/*.

Verification

Fork suite 382 green (14 skipped; −64 deleted vendored tests). Stacks on #78.

Remaining 4.3 sub-unit: queue (last L2 unit).

🤖 Generated with Claude Code

Move illuminate/routing from replace (self.version) to require ^13; v13's
Routing tree shadows the fork via PSR-4 (seed mechanism). This removes the
fork Router's before/after/filter global-filter engine — the last of the
task 2.8 filter surface (part 2).

Foundation: App::before/App::after no longer delegate to the (now v13) Router,
which has no global-filter concept. Store the callbacks on the Application and
run them around the route dispatch (before with response short-circuit, after
wrapping the response) — the app has no HTTP Kernel to host global middleware.

CachedRouting evaporated early (its Router subclass overrides L4.2 Router
internals gone in v13 and can't even compile against v13's public newRoute()).
The routing swap forces this component's removal ahead of task 4.4.

Deleted vendored-behavior tests (now assert v13-owned Router/UrlGenerator/
Redirector/ControllerDispatcher/ResponseFactory internals): Routing/* +
Support/SupportFacadeResponseTest + CachedRouting/*.

Fork suite 382 green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@agissept agissept self-assigned this Sep 26, 2026
@agissept
agissept marked this pull request as draft September 26, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant