$factory
$factory : \Charcoal\Factory\FactoryInterface
Model Loader Builder.
Build custom ModelLoader objects with a certain obj type / optional obj key.
build(string $objType, string $objKey = null) : \Charcoal\Model\Service\ModelLoader
string | $objType | The object type of the ModelLoader. |
string | $objKey | Optional object key, to set on the ModelLoader. |
__invoke(string $objType, string $objKey = null) : \Charcoal\Model\Service\ModelLoader
The builder can be invoked (used as function).
string | $objType | The object type of the ModelLoader. |
string | $objKey | Optional object key, to set on the ModelLoader. |
setFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Model\Service\ModelLoaderBuilder
\Charcoal\Factory\FactoryInterface | $factory | The factory to use to create models. |
Chainable
setCachePool(\Psr\Cache\CacheItemPoolInterface $cachePool) : \Charcoal\Model\Service\ModelLoaderBuilder
\Psr\Cache\CacheItemPoolInterface | $cachePool | The PSR-6 compliant cache pool. |
Chainable