interface ApiServiceInterface

Interface to be called for DI for API Main related services

Methods

create($user, ParameterBag $parameters)

Creates the user using the API

delete($user)

Deletes the user

string
getToken($user, Request $request)

Encodes the JSON Web Token

hydrate($user, $parameters)

Hydrates the user with given parameters

modify($user, $parameters)

Modifies the user

array|null
validateToken(string $token)

Validates the JWToken

Details

at line 26
create($user, ParameterBag $parameters)

Creates the user using the API

Parameters

$user
ParameterBag $parameters

at line 31
delete($user)

Deletes the user

Parameters

$user

at line 37
string getToken($user, Request $request)

Encodes the JSON Web Token

Parameters

$user
Request $request

Return Value

string

at line 42
hydrate($user, $parameters)

Hydrates the user with given parameters

Parameters

$user
$parameters

at line 47
modify($user, $parameters)

Modifies the user

Parameters

$user
$parameters

at line 53
array|null validateToken(string $token)

Validates the JWToken

Parameters

string $token

Return Value

array|null