Class FactoryLocator
Class FactoryLocator
Properties summary
-
$_modelFactories
protected staticcallable[]
A list of model factory functions.
Method Summary
Method Detail
add() public static ¶
add( string $type , callable $factory )
Register a callable to generate repositories of a given type.
Parameters
- string $type
- The name of the repository type the factory function is for.
- callable $factory
- The factory function used to create instances.