Elgg
Version 2.3
|
Public Member Functions | |
__construct (\Elgg\Config $config) | |
Constructor. More... | |
Public Member Functions inherited from Elgg\Di\DiContainer | |
__get ($name) | |
Fetch a value. More... | |
setValue ($name, $value) | |
Set a value to be returned without modification. More... | |
setFactory ($name, $callable, $shared=true) | |
Set a factory to generate a value when the container is read. More... | |
setClassName ($name, $class_name, $shared=true) | |
Set a factory based on instantiating a class with no arguments. More... | |
remove ($name) | |
Remove a value from the container. More... | |
has ($name) | |
Does the container have this value. More... | |
getNames () | |
Get names for all values/factories. More... | |
Protected Member Functions | |
resolveLoggerDependencies ($service_needed) | |
Returns the first requested service of the logger, events, and hooks. More... | |
Additional Inherited Members | |
Public Attributes inherited from Elgg\Di\DiContainer | |
const | CLASS_NAME_PATTERN_53 = '/^(\\\\?[a-z_\x7f-\xff][a-z0-9_\x7f-\xff]*)+$/i' |
Definition at line 90 of file ServiceProvider.php.
Elgg\Di\ServiceProvider::__construct | ( | \Elgg\Config | $config | ) |
Constructor.
Definition at line 97 of file ServiceProvider.php.
|
protected |
Returns the first requested service of the logger, events, and hooks.
It sets the hooks and events up in the right order to prevent circular dependency.
string | $service_needed | The service requested first |
Definition at line 478 of file ServiceProvider.php.