library/core/class.gdn.php
public static function FactoryInstallDependencyFromConfig($Config, $Alias = NULL) {
      if (is_string($Config))
         $Config = self::Config($Config);
      if (is_null($Alias))
         $Alias = $Config['Alias'];
         
      $PropertyName = $Config['PropertyName'];
      $SourceAlias = $Config['SourceAlias'];
      $Override = ArrayValue('Override', $Config, TRUE);
      
      self::FactoryInstallDependency($Alias, $PropertyName, $SourceAlias, $Override);
   }
public static function FactoryInstallDependencyFromConfig($Config, $Alias = NULL) {
      if (is_string($Config))
         $Config = self::Config($Config);
      if (is_null($Alias))
         $Alias = $Config['Alias'];
         
      $PropertyName = $Config['PropertyName'];
      $SourceAlias = $Config['SourceAlias'];
      $Override = ArrayValue('Override', $Config, TRUE);
      
      self::FactoryInstallDependency($Alias, $PropertyName, $SourceAlias, $Override);
   }
public static function FactoryInstallDependencyFromConfig ( $ Config , $ Alias = NULL ) { if ( is_string ( $ Config ) ) $ Config = self :: Config ( $ Config ) ; if ( is_null ( $ Alias ) ) $ Alias = $ Config [ 'Alias' ] ; $ PropertyName = $ Config [ 'PropertyName' ] ; $ SourceAlias = $ Config [ 'SourceAlias' ] ; $ Override = ArrayValue ( 'Override' , $ Config , TRUE ) ; self :: FactoryInstallDependency ( $ Alias , $ PropertyName , $ SourceAlias , $ Override ) ; }
Installs a dependency to the factory with the settings from a configuration.

@param mixed $Config The configuration of the factory definition. This argument can be of the following types:
- <b>string</b>: The configuration will be looked up by calling inline{@link Gdn::Config()}
- <b>array</b>: The configuration will be set from the array.
@param string $Alias The class alias to install into the factory. If omitted then it must be in the configuration.

The dependency will be installed from the configuration array depending on the following keys:
- <b>Alias</b>: Optional if $Alias is passed as an argument.
- <b>PropertyName</b>: Required.
- <b>SourceAlias</b>: Required.
- <b>Override</b> Optional.
All of these values are passed to the corresponding argument in inline{@link Gdn::FactoryInstallDependency()}.
Installs a dependency to the factory with the settings from a configuration .