Skip to content
docsv0.1.0

HandlerResolverInterface

The seam between the abstract route table and concrete PSR-15 execution: it turns a matched route's framework-agnostic {@see HandlerReference} into a live `Psr\Http\Server\RequestHandlerInterface` — pulling the controller from the container and adapting a method-as-handler. A dispatch middleware depends on this, not on the container.

HandlerResolverInterface::resolve()

abstract public function resolve(Milpa\Http\Routing\HandlerReference $reference): Psr\Http\Server\RequestHandlerInterface

Resolve a handler reference into an executable PSR-15 request handler.

Parameters

Parameters of resolve()
NameTypeDescription
$referenceMilpa\Http\Routing\HandlerReference