|
Elgg
Version 1.10
|
Public Member Functions | |
| __construct (\Elgg\AutoloadManager $autoload_manager) | |
| 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... | |
Protected Member Functions | |
| resolveLoggerDependencies ($service_needed) | |
| Returns the first requested service of the logger, events, and hooks. More... | |
Protected Member Functions inherited from Elgg\Di\DiContainer | |
| build ($factory, $name) | |
| Build a value. 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' |
Protected Attributes inherited from Elgg\Di\DiContainer | |
| $factories = array() | |
| $cache = array() | |
Definition at line 57 of file ServiceProvider.php.
| Elgg\Di\ServiceProvider::__construct | ( | \Elgg\AutoloadManager | $autoload_manager | ) |
Constructor.
| \Elgg\AutoloadManager | $autoload_manager | Class autoloader |
Definition at line 64 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 236 of file ServiceProvider.php.