Skip to content

Remove MiddlewareDispatcher::getMiddleware()? #2600

Description

@akrabat

In Route::finalize(), rather than getting the Group's middleware and adding it to the MiddlwareDispatcher, maybe we should call $group->addToMiddlewareDipatcher($this->middlewareDispatcher) which does the foreach over the middleware. This removes RouteGroup::getMiddleware() which feels like an encapsulation leakage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions