\midcom_helper_serviceloader

Service interface loader class

MidCOM services are implemented following the inversion of control pattern where services are defined by an interface class

Summary

Methods
Properties
Constants
can_load()
load()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
get_implementation()
$instances
N/A

Properties

$instances

$instances : 

Type

Methods

can_load()

can_load(string  $service) : boolean

Parameters

string $service

Service identifier to check loadability

Returns

boolean —

Whether the service can be loaded

load()

load(  $service) 

Instantiate and return the service object

Parameters

$service

get_implementation()

get_implementation(string  $service) : string

Parameters

string $service

Service identifier to get implementation for

Returns

string —

Name of the implementation class