route icon indicating copy to clipboard operation
route copied to clipboard

Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

Results 21 route issues
Sort by recently updated
recently updated
newest added

We have an implementation of RequestHandlerInterface for every route in our app. We currently have to register them on the router like this (simplified for example): ``` $helloRequestHandler = new...

When implementing my own cache interface which uses Redis, it provides (forces) it's own key, instead of allowing the developer the option of setting their own key. This could be...

Could be a solution for https://github.com/thephpleague/route/issues/301, but it is definitely a solution for our use case. We'd like an easy way to read the matched Route during every step of...

I like send a Response if Method Not Found o route Not Found example: ```php

I've updated a test to expose the bug and hopefully applied a suitable fix (all other tests continue to pass).

With it's method allow get info the route. Allow creating to DataSource to Clockwork ### BEFORE ![Captura desde 2023-05-14 20-58-06](https://github.com/thephpleague/route/assets/22831024/7f6ede6d-c6b0-46d8-99e1-f346c4802118) ### AFTER ![github](https://github.com/thephpleague/route/assets/22831024/a727b98e-29a3-495d-87fd-c728c547c559) ### LeagueRouterDataSource ```php

Is there any way to only find the specific handler, but not handle it? In simple way, this is original dispatchRequest() ``` public function dispatchRequest(ServerRequestInterface $request): ResponseInterface { $method =...

Is there a away to get all declared routes in the current version (or planned in the next)? For example, something like this? ``` $router->get('/foo', Foo::class); $router->get('/bar', Bar::class); $result =...

Currently the map function signature is: `public function map(string $method, string $path, $handler): Route` It would be nice if we are able to pass some extra options along: `public function...