Kernel
in package
Uses
StaticTrait
Table of Contents
- $container : mixed
- $instance : mixed
- Instance object.
- __callStatic() : mixed
- Add support for magic static method calls.
- _i() : mixed
- _instance() : mixed
- get() : mixed
- Short method for get a service.
- getInstance() : mixed
- Get instance of Kernel.
- instance() : mixed
- Set/get a instance of object.
Properties
$container
protected
static mixed
$container
$instance
Instance object.
protected
static mixed
$instance
Methods
__callStatic()
Add support for magic static method calls.
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
Return values
mixed —the returned value from the resolved method
_i()
public
static _i() : mixed
Return values
mixed —_instance()
public
static _instance() : mixed
Return values
mixed —get()
Short method for get a service.
public
static get(string $serviceName) : mixed
This replaces to LotgdKernel::getContainer()->get('service_name').
Parameters
- $serviceName : string
Return values
mixed —getInstance()
Get instance of Kernel.
public
static getInstance() : mixed
Return values
mixed —instance()
Set/get a instance of object.
public
static instance(mixed $instance) : mixed
Parameters
- $instance : mixed