Elgg
Version 1.9
|
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 | |
getDatabase (Elgg_Di_ServiceProvider $c) | |
Database factory. More... | |
getEvents (Elgg_Di_ServiceProvider $c) | |
Events service factory. More... | |
getLogger (Elgg_Di_ServiceProvider $c) | |
Logger factory. More... | |
getHooks (Elgg_Di_ServiceProvider $c) | |
Plugin hooks service factory. More... | |
resolveLoggerDependencies ($service_needed) | |
Returns the first requested service of the logger, events, and hooks. More... | |
getViews (Elgg_Di_ServiceProvider $c) | |
Views service factory. More... | |
getAmdConfig (Elgg_Di_ServiceProvider $c) | |
AMD Config factory. More... | |
getSession (Elgg_Di_ServiceProvider $c) | |
Session factory. More... | |
getRequest (Elgg_Di_ServiceProvider $c) | |
Request factory. More... | |
getRouter (Elgg_Di_ServiceProvider $c) | |
Router factory. More... | |
getNotifications (Elgg_Di_ServiceProvider $c) | |
Notification service factory. More... | |
getPersistentLogin (Elgg_Di_ServiceProvider $c) | |
Persistent login service factory. More... | |
getQueryCounter (Elgg_Di_ServiceProvider $c) | |
Query counter factory. 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_52 = '/^[a-z_\x7f-\xff][a-z0-9_\x7f-\xff]*$/i' |
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 32 of file ServiceProvider.php.
Elgg_Di_ServiceProvider::__construct | ( | Elgg_AutoloadManager | $autoload_manager | ) |
Constructor.
Elgg_AutoloadManager | $autoload_manager | Class autoloader |
Definition at line 39 of file ServiceProvider.php.
|
protected |
AMD Config factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 138 of file ServiceProvider.php.
|
protected |
Database factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 67 of file ServiceProvider.php.
|
protected |
Events service factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 78 of file ServiceProvider.php.
|
protected |
Plugin hooks service factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 98 of file ServiceProvider.php.
|
protected |
Logger factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 88 of file ServiceProvider.php.
|
protected |
Notification service factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 196 of file ServiceProvider.php.
|
protected |
Persistent login service factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 210 of file ServiceProvider.php.
|
protected |
Query counter factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 224 of file ServiceProvider.php.
|
protected |
Request factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 175 of file ServiceProvider.php.
|
protected |
Router factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 185 of file ServiceProvider.php.
|
protected |
Session factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 150 of file ServiceProvider.php.
|
protected |
Views service factory.
Elgg_Di_ServiceProvider | $c | Dependency injection container |
Definition at line 128 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 109 of file ServiceProvider.php.