class PersonalAccessTokenFactory

Methods

__construct(ServerFactory $servers)

Create a new personal access token factory instance.

make(string|int $userId, string $name, array $scopes, string $provider)

Create a new personal access token.

ServerRequestInterface
createRequest(string|int $userId, string $name, array $scopes, string $provider)

Create a request instance for the given client.

array
dispatchRequestToAuthorizationServer(ServerRequestInterface $request)

Dispatch the given request to the authorization server.

Details

at line 17
__construct(ServerFactory $servers)

Create a new personal access token factory instance.

Parameters

ServerFactory $servers

at line 27
PersonalAccessTokenResult make(string|int $userId, string $name, array $scopes, string $provider)

Create a new personal access token.

Parameters

string|int $userId
string $name
array $scopes
string $provider

Return Value

PersonalAccessTokenResult

at line 41
protected ServerRequestInterface createRequest(string|int $userId, string $name, array $scopes, string $provider)

Create a request instance for the given client.

Parameters

string|int $userId
string $name
array $scopes
string $provider

Return Value

ServerRequestInterface

at line 57
protected array dispatchRequestToAuthorizationServer(ServerRequestInterface $request)

Dispatch the given request to the authorization server.

Parameters

ServerRequestInterface $request

Return Value

array