final class PoweredByMiddleware implements MiddlewareInterface (View source)

Adds the framework's configured identification header to downstream responses.

Methods

__construct(FrameworkInfo $frameworkInfo)

Uses framework metadata as the header name and value source.

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $handler)

Delegates request handling and replaces the identification response header.

ResponseInterface

Details

__construct

__construct(FrameworkInfo $frameworkInfo)

Uses framework metadata as the header name and value source.

Parameters

FrameworkInfo $frameworkInfo

process

ResponseInterface process(ServerRequestInterface $request, RequestHandlerInterface $handler)

Delegates request handling and replaces the identification response header.

Parameters

ServerRequestInterface $request
RequestHandlerInterface $handler

Return Value

ResponseInterface