Install a class to the factory.
public static factoryInstall ( string $Alias, string $ClassName, string $Path = '', string $FactoryType = self::FactorySingleton, $Data = null ) | ||
$Alias | string | An alias for the class that will be used to retreive instances of it. |
$ClassName | string | The actual name of the class. |
$Path | string | The path to the class' file. You can prefix the path with ~ to start at the application root. |
$FactoryType | string | The way objects will be instantiated for the class. One of (Gdn::FactoryInstance, Gdn::FactoryPrototype, Gdn::FactorySingleton). |