Kernel
Tags
Table of Contents
- $container : mixed
- $instance : Kernel
- Intance of Kernel.
- __callStatic() : mixed
- Add support for magic static method calls.
- get() : mixed
- Short method for get a service.
- getInstance() : mixed
- Get instance of Kernel.
- instance() : void
- Set instance of Kernel.
Properties
$container
protected
static mixed
$container
$instance
Intance of Kernel.
protected
static Kernel
$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
get()
Short method for get a service.
public
static get(string $serviceName) : mixed
This replace 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 instance of Kernel.
public
static instance(Kernel $instance) : void
Parameters
- $instance : Kernel