Server
in package
implements
ServerInterface
FinalYes
Table of Contents
Interfaces
- ServerInterface
- Declares the capabilities of the resource server.
Methods
- __construct() : mixed
- findTarget() : Target|HttpResponseCodeEnum
- Attempts to locate an object associated with a given route.
Methods
__construct()
public
__construct(array<string|int, Target> $interface) : mixed
Parameters
- $interface : array<string|int, Target>
findTarget()
Attempts to locate an object associated with a given route.
public
findTarget(ServerRequestInterface $request) : Target|HttpResponseCodeEnum
The object defines an action that will be executed for HTTP requests that match the associated route.
Parameters
- $request : ServerRequestInterface