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

Public Member Functions

 __construct (Config $config)
 Constructor. More...
 
 initConfig (Config $config, ServiceProvider $sp)
 Validate, normalize, fill in missing values, and lock some. 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...
 
 reset ($name)
 Remove previously built service, so that it's rebuld from factory on next call. 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

 initSiteSecret (Config $config)
 Extract the site secret from config or set up its factory. 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 133 of file ServiceProvider.php.

Constructor & Destructor Documentation

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

Constructor.

Parameters
Config$configElgg Config service
Exceptions
ConfigurationException

Definition at line 141 of file ServiceProvider.php.

Member Function Documentation

Elgg\Di\ServiceProvider::initConfig ( Config  $config,
ServiceProvider  $sp 
)

Validate, normalize, fill in missing values, and lock some.

Parameters
Config$configConfig
ServiceProvider$spService Provider
Returns
void
Exceptions
ConfigurationException

Definition at line 742 of file ServiceProvider.php.

Elgg\Di\ServiceProvider::initSiteSecret ( Config  $config)
protected

Extract the site secret from config or set up its factory.

Parameters
Config$configElgg Config
Returns
void

Definition at line 719 of file ServiceProvider.php.


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