ApiEnabled
in package
implements
MiddlewareInterface
Validates that remote API is allowed on the server.
Returns HTTP 403 if remote API is disabled in panel.ini.
Tags
Interfaces, Classes and Traits
- MiddlewareInterface
Table of Contents
- __construct() : mixed
- process() : ResponseInterface
Methods
__construct()
public
__construct(ResponseFactoryInterface $factory) : mixed
Parameters
- $factory : ResponseFactoryInterface
Return values
mixed —process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface