snicco/must-match-route-middleware

v2.0.0-beta.9 2024-09-07 14:27 UTC

README

codecov Psalm Type-Coverage Psalm level PhpMetrics - Static Analysis PHP-Versions

A middleware for the snicco/http-routing component that will throw a 404 HTTPException if the returned response is an instance of DelegatedResponse.

Installation

composer require snicco/must-match-route-middleware

Usage

This middleware should be added for specific groups in the MiddlewareResolver.

There are no configuration options.

$configurator->middleware(Snicco\Middleware\MustMatchRoute\MustMatchRoute::class)->group(function () {
   // 
});

Contributing

This repository is a read-only split of the development repo of the Snicco project.

This is how you can contribute.

Reporting issues and sending pull requests

Please report issues in the Snicco monorepo.

Security

If you discover a security vulnerability, please follow our disclosure procedure.