library/core/class.factory.php
public function InstallDependency($Alias, $PropertyName, $SourceAlias) {
      if(!array_key_exists($Alias, $this->_Dependencies)) {
         $this->_Dependencies[$Alias] = array($PropertyName => $SourceAlias);
      } else {
         $this->_Dependencies[$Alias][$PropertyName] = $SourceAlias;
      }
   }
public function InstallDependency($Alias, $PropertyName, $SourceAlias) {
      if(!array_key_exists($Alias, $this->_Dependencies)) {
         $this->_Dependencies[$Alias] = array($PropertyName => $SourceAlias);
      } else {
         $this->_Dependencies[$Alias][$PropertyName] = $SourceAlias;
      }
   }
public function InstallDependency ( $ Alias , $ PropertyName , $ SourceAlias ) { if ( ! array_key_exists ( $ Alias , $ this -> _Dependencies ) ) { $ this -> _Dependencies [ $ Alias ] = array ( $ PropertyName => $ SourceAlias ) ; } else { $ this -> _Dependencies [ $ Alias ] [ $ PropertyName ] = $ SourceAlias ; } }
Install a dependency for the factory.

This method provides support for simple dependency injection.
When an object with dependencies is created then the factory will call inline{@link Gdn_Factory::Factory()}
for each dependency and set the object properties before returning it.
Those dependencies can also have their own dependencies which will all be set when the object is returned.

@param string $Alias The alias of the class that will have the dependency.
@param string $PropertyName The name of the property on the class that will have the dependency.
@param string $SourceAlias The alias of the class that will provide the value of the property when objects are instantiated.
Install a dependency for the factory .