<?php interface MiddlewareInterface { /** * Process a request and return a response. * * Takes the incoming request and optionally modifies it before delegating * to the next handler to get a response. May modify the response before * ultimately returning it. * * @param RequestInterface $request * @param ResponseInterface $response * @param callable $next * * @return ResponseInterface */ public function __invoke( RequestInterface $request, ResponseInterface $response, callable $next ); } interface ServerMiddlewareInterface extends MiddlewareInterface { /** * Process a request and return a response. * * Takes the incoming request and optionally modifies it before delegating * to the next handler to get a response. May modify the response before * ultimately returning it. * * @param RequestInterface $request * @param ResponseInterface $response * @param callable $next * * @return ResponseInterface */ public function __invoke( ServerRequestInterface $request, ResponseInterface $response, callable $next ); } class AcmeMiddleware implements ServerMiddlewareInterface { public function __invoke( ServerRequestInterface $request, ResponseInterface $response, callable $next ) { return $response; } }
You have javascript disabled. You will not be able to edit any code.
Generated using Vulcan Logic Dumper, using php 8.0.0