Definition at line 28 of file DiContainer.php.
 
◆ __get()
      
        
          | Elgg\Di\DiContainer::__get  | 
          ( | 
            | 
          $name | ) | 
           | 
        
      
 
Fetch a value. 
- Parameters
 - 
  
    | string | $name | The name of the value to fetch  | 
  
   
- Returns
 - mixed 
 
- Exceptions
 - 
  
  
 
Definition at line 44 of file DiContainer.php.
 
 
◆ getNames()
      
        
          | Elgg\Di\DiContainer::getNames  | 
          ( | 
           | ) | 
           | 
        
      
 
Get names for all values/factories. 
@access private 
Definition at line 185 of file DiContainer.php.
 
 
◆ has()
      
        
          | Elgg\Di\DiContainer::has  | 
          ( | 
            | 
          $name | ) | 
           | 
        
      
 
Does the container have this value. 
- Parameters
 - 
  
    | string | $name | The name of the value  | 
  
   
- Returns
 - bool 
 
Definition at line 168 of file DiContainer.php.
 
 
◆ remove()
      
        
          | Elgg\Di\DiContainer::remove  | 
          ( | 
            | 
          $name | ) | 
           | 
        
      
 
Remove a value from the container. 
- Parameters
 - 
  
    | string | $name | The name of the value  | 
  
   
- Returns
 - \Elgg\Di\DiContainer 
 
Definition at line 153 of file DiContainer.php.
 
 
◆ setClassName()
      
        
          | Elgg\Di\DiContainer::setClassName  | 
          ( | 
            | 
          $name,  | 
        
        
           | 
           | 
            | 
          $class_name,  | 
        
        
           | 
           | 
            | 
          $shared = true  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Set a factory based on instantiating a class with no arguments. 
- Parameters
 - 
  
    | string | $name | Name of the value  | 
    | string | $class_name | Class name to be instantiated  | 
    | bool | $shared | Whether the same value should be returned for every request  | 
  
   
- Returns
 - \Elgg\Di\DiContainer 
 
- Exceptions
 - 
  
  
 
Definition at line 133 of file DiContainer.php.
 
 
◆ setFactory()
      
        
          | Elgg\Di\DiContainer::setFactory  | 
          ( | 
            | 
          $name,  | 
        
        
           | 
           | 
            | 
          $callable,  | 
        
        
           | 
           | 
            | 
          $shared = true  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Set a factory to generate a value when the container is read. 
- Parameters
 - 
  
    | string | $name | The name of the value  | 
    | callable | $callable | Factory for the value  | 
    | bool | $shared | Whether the same value should be returned for every request  | 
  
   
- Returns
 - \Elgg\Di\DiContainer 
 
- Exceptions
 - 
  
  
 
Definition at line 109 of file DiContainer.php.
 
 
◆ setValue()
      
        
          | Elgg\Di\DiContainer::setValue  | 
          ( | 
            | 
          $name,  | 
        
        
           | 
           | 
            | 
          $value  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Set a value to be returned without modification. 
- Parameters
 - 
  
    | string | $name | The name of the value  | 
    | mixed | $value | The value  | 
  
   
- Returns
 - \Elgg\Di\DiContainer 
 
- Exceptions
 - 
  
  
 
Definition at line 91 of file DiContainer.php.
 
 
◆ CLASS_NAME_PATTERN_53
      
        
          | const Elgg\Di\DiContainer::CLASS_NAME_PATTERN_53 = '/^(\\\\?[a-z_\x7f-\xff][a-z0-9_\x7f-\xff]*)+$/i' | 
        
      
 
 
The documentation for this class was generated from the following file: