Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

NotFoundDelegate and NotFoundHandler #441

@danizord

Description

@danizord

While upgrading to Expressive 2 I found these new NotFoundDelegate and NotFoundHandler a bit confusing. 😕

The 2.0 docs suggests using NotFoundDelegate as default delegate and piping NotFoundHandler as the outermost (EDIT: inner) middleware, which makes no sense for me since NotFoundHandler uses NotFoundDelegate internally and NotFoundDelegate would be called anyway if NotFoundHandler was not piped.

As such, to avoid confusion I'd suggest removing the "default delegate" concept and recommend usage of "catch-all" middlewares only.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions