Gdn::factoryInstallDependency PHP Method

factoryInstallDependency() public static method

Installs a dependency to the factory.
See also: Gdn_Factory::InstalDependency()
public static factoryInstallDependency ( string $Alias, string $PropertyName, string $SourceAlias )
$Alias string The alias of the class that will have the dependency.
$PropertyName string The name of the property on the class that will have the dependency.
$SourceAlias string The alias of the class that will provide the value of the property when objects are instantiated.
    public static function factoryInstallDependency($Alias, $PropertyName, $SourceAlias)
    {
        self::factory()->installDependency($Alias, $PropertyName, $SourceAlias);
    }