Documentation

CallableRequestHandler
in package
implements RequestHandlerInterface

Adapts a plain callable into a RequestHandlerInterface. Internal - used by Pipeline to build each link of the chain; not part of the API a middleware author interacts with directly.

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

Table of Contents

Interfaces

RequestHandlerInterface
Client middleware request handler interface - what a MiddlewareInterface's $handler argument is; calling $handler->handle($request) continues the chain

Properties

$callable  : callable
The wrapped callable

Methods

__construct()  : mixed
Constructor
handle()  : ResponseInterface
Handle the request by delegating to the wrapped callable

Properties

Methods

__construct()

Constructor

public __construct(callable $callable) : mixed
Parameters
$callable : callable

handle()

Handle the request by delegating to the wrapped callable

public handle(RequestInterface $request) : ResponseInterface
Parameters
$request : RequestInterface
Return values
ResponseInterface

        
On this page

Search results