Elgg  Version 2.3
Public Member Functions | Protected Member Functions | List of all members
Elgg\Di\ServiceProvider Class Reference
Inheritance diagram for Elgg\Di\ServiceProvider:

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'

Detailed Description

Definition at line 90 of file ServiceProvider.php.

Constructor & Destructor Documentation

Elgg\Di\ServiceProvider::__construct ( \Elgg\Config  $config)


\Elgg\Config$configElgg Config service

Definition at line 97 of file ServiceProvider.php.

Member Function Documentation

Elgg\Di\ServiceProvider::resolveLoggerDependencies (   $service_needed)

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_neededThe service requested first

Definition at line 478 of file ServiceProvider.php.

The documentation for this class was generated from the following file: