create()
create(string $type, array $args = null, callable $cb = null) : mixed
Create a new instance of a class, by type.
Parameters
string | $type | The type (class ident). |
array | $args | Constructor arguments. |
callable | $cb | Object callback. |
Returns
mixed —The instance / object