\PhileServiceLocator

the Service Locator class

Summary

Methods
Properties
Constants
registerService()
hasService()
getService()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

registerService()

registerService(string  $serviceKey,mixed  $object): void

method to register a service

Parameters

string $serviceKey

the key for the service

mixed $object

hasService()

hasService(string  $serviceKey): boolean

checks if a service is registered

Parameters

string $serviceKey

Returns

boolean

getService()

getService(string  $serviceKey): mixed

returns a service

Parameters

string $serviceKey

the service key

Returns

mixed