class ClientRepository implements ClientRepositoryInterface

Methods

__construct(ClientRepository $clients)

Create a new repository instance.

ClientEntityInterface|null
getClientEntity(string $clientIdentifier)

Retrieve an active client entity by its identifier.

bool
validateClient(string $clientIdentifier, string|null $clientSecret, string|null $grantType)

Validate the client secret.

ClientEntityInterface|null
getPersonalAccessClientEntity(string $provider)

Get the personal access client for the given provider.

ClientEntityInterface
fromClientModel(Client $model)

Create a new client entity from the given client model instance.

Details

at line 18
__construct(ClientRepository $clients)

Create a new repository instance.

Parameters

ClientRepository $clients

at line 28
ClientEntityInterface|null getClientEntity(string $clientIdentifier)

Retrieve an active client entity by its identifier.

{@inheritdoc}

Parameters

string $clientIdentifier

Return Value

ClientEntityInterface|null

at line 40
bool validateClient(string $clientIdentifier, string|null $clientSecret, string|null $grantType)

Validate the client secret.

{@inheritdoc}

Parameters

string $clientIdentifier
string|null $clientSecret
string|null $grantType

Return Value

bool

at line 50
ClientEntityInterface|null getPersonalAccessClientEntity(string $provider)

Get the personal access client for the given provider.

Parameters

string $provider

Return Value

ClientEntityInterface|null

at line 60
protected ClientEntityInterface fromClientModel(Client $model)

Create a new client entity from the given client model instance.

Parameters

Client $model

Return Value

ClientEntityInterface