BaseController
in package
Implements common functionalities needed by controller classes
Table of Contents
- $acessToken : string
- json() : void
- Returns json output
- setAccessToken() : void
- Set JWT regenerated token
Properties
$acessToken
private
static string
$acessToken
Set if JWT token is renewed
Methods
json()
Returns json output
public
json(mixed $code, array<string|int, mixed> $data) : void
Parameters
- $code : mixed
- $data : array<string|int, mixed>
Return values
void —setAccessToken()
Set JWT regenerated token
public
static setAccessToken(string $token) : void
Parameters
- $token : string