Initializer
in package
FinalYes
This class initializes all the classes used by the core.
Table of Contents
Methods
- get_services() : array<string|int, mixed>
- Store all the classes inside an array
- register_services() : void
- Loop through the classes, initialize them, and call the register() method if it exists
- instantiate() : object
- Initialize the class
Methods
get_services()
Store all the classes inside an array
public
static get_services() : array<string|int, mixed>
Return values
array<string|int, mixed> —Full list of classes
register_services()
Loop through the classes, initialize them, and call the register() method if it exists
public
static register_services() : void
instantiate()
Initialize the class
private
static instantiate(string $class) : object
Parameters
- $class : string
-
class from the services array.
Return values
object —instance new instance of the class