class CreateTokenController implements RequestHandlerInterface

Not to be confused with the CreateAccessTokenController, this controller is used to authenticate a user with credentials, and return a system generated session-type access token.

Properties

protected UserRepository $users
protected Dispatcher $bus
protected Dispatcher $events

Methods

__construct(UserRepository $users, Dispatcher $bus, Dispatcher $events)

No description

ResponseInterface
handle(ServerRequestInterface $request)

<p>{@inheritdoc}</p>

Details

__construct(UserRepository $users, Dispatcher $bus, Dispatcher $events)

Parameters

UserRepository $users
Dispatcher $bus
Dispatcher $events

ResponseInterface handle(ServerRequestInterface $request)

<p>{@inheritdoc}</p>

Parameters

ServerRequestInterface $request

Return Value

ResponseInterface