Метод | Описание | |
---|---|---|
__construct ( array $schemas ) | JsonSchema constructor. | |
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. |
Метод | Описание | |
---|---|---|
getSchema ( Psr\Http\Message\ServerRequestInterface $request ) : SplFileObject | null | ||
normalizeFilePath ( $path ) : string |
public __construct ( array $schemas ) | ||
$schemas | array | [uri => file] An associative array of HTTP URI to validation schema |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$next | callable | |
Результат | Psr\Http\Message\ResponseInterface |