If the given class can't be found, an exception is thrown.
public static instance ( string $type, string $name, array $options = [] ) : object | ||
$type | string | The type of class as defined by `Libraries::$_paths`. |
$name | string | The un-namespaced name of the class to instantiate. |
$options | array | An array of constructor parameters to pass to the class. |
Результат | object | If the class is found, returns an instance of it, otherwise throws an exception. |