Service interface loader class

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

package midcom

 Methods

can_load (string $service)

Parameters

$service

stringService identifier to check loadability

Returns

booleanWhether the service can be loaded

load ($service)

Instantiate and return the service object

Parameters

$service

get_implementation (string $service)

Parameters

$service

stringService identifier to get implementation for

Returns

stringName of the implementation class

 Properties

 

mixed $instances