DefaultTokenController
extends Controller
in package
An implementation of token endpoint.
Table of Contents
Methods
- __invoke() : Response
- The entry point of this controller.
- getTokenRequestHandlerSpi() : TokenRequestHandlerSpi
- Get an implementation of the TokenRequestHandlerSpi interface.
Methods
__invoke()
The entry point of this controller.
public
__invoke(AuthleteApi $api, Request $request) : Response
Parameters
- $api : AuthleteApi
-
An implementation of the
AuthleteApi
interface. - $request : Request
-
A token request.
Return values
Response —A response that should be returned to the client.
getTokenRequestHandlerSpi()
Get an implementation of the TokenRequestHandlerSpi interface.
protected
getTokenRequestHandlerSpi(Request $request) : TokenRequestHandlerSpi
The default implementation of this method returns an instance of
DefaultTokenRequestHandlerSpi
.
Parameters
- $request : Request
-
A token request.
Return values
TokenRequestHandlerSpi —An implementation of the TokenRequestHandlerSpi
interface.