Closed PhantomArt closed 4 years ago
Why Router does not implement Psr\Http\Server\RequestHandlerInterface?
Router
Psr\Http\Server\RequestHandlerInterface
It will look closer to the standards:
$response = $router->handle($request);
The dispatcher implements it.
class Dispatcher extends GroupCountBasedDispatcher implements MiddlewareAwareInterface, RequestHandlerInterface, StrategyAwareInterface
Why
Router
does not implementPsr\Http\Server\RequestHandlerInterface
?It will look closer to the standards:
$response = $router->handle($request);