Skip to content

Allow Respect\Rest\Router as target.#120

Open
m42e wants to merge 2 commits intoRespect:masterfrom
m42e:master
Open

Allow Respect\Rest\Router as target.#120
m42e wants to merge 2 commits intoRespect:masterfrom
m42e:master

Conversation

@m42e
Copy link

@m42e m42e commented Sep 22, 2015

Allow to define a Router as target which allows nesting of
several indipendent router. This makes routers reuseable.

See #119.

Allow to define a Router as target which allows nesting of
several indipendent router. This makes routers reuseable
@alganet
Copy link
Member

alganet commented Mar 18, 2026

Almost 11 years late 🐼 This is indeed a wanted feature, but lots of things happen since then. For example, when we initially created Rest, the PSRs for HTTP didn't existed yet. The fact that now they do, and middlewares exist, potentially changes how we might approach this.

I'll investigate this use case further, and report back here. For now, I've implemented basic downstream HTTP middlewares as per PSR-15, which is not enough, but sets a direction for delegation inside the core that we might decide to reuse later.

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.

2 participants