ContainerHandlerResolver
The concrete `milpa/http` {@see HandlerResolverInterface}: pulls the controller named by a {@see HandlerReference} out of a PSR-11 container and wraps it, together with the reference's method name, in a {@see CallableRequestHandler}.
ContainerHandlerResolver::__construct()
public function __construct(Psr\Container\ContainerInterface $container):Parameters
| Name | Type | Description |
|---|---|---|
| $container | Psr\Container\ContainerInterface |
ContainerHandlerResolver::resolve()
public function resolve(Milpa\Http\Routing\HandlerReference $reference): Psr\Http\Server\RequestHandlerInterfaceResolves a handler reference into an executable PSR-15 request handler.
Parameters
| Name | Type | Description |
|---|---|---|
| $reference | Milpa\Http\Routing\HandlerReference |