class ManifestCacheFactory extends DefaultCacheFactory

Assists with building of manifest cache prior to config being available

Methods

__construct(array $args = [], LoggerInterface $logger = null)

No description

object
create(string $service, array $params = array())

Note: While the returned object is used as a singleton (by the originating Injector->get() call), this cache object shouldn't be a singleton itself - it has varying constructor args for the same service name.

CacheInterface
createCache(string $class, array $args)

Create cache directly without config / injector

Details

at line 21
__construct(array $args = [], LoggerInterface $logger = null)

Parameters

array $args List of global options to merge with args during create()
LoggerInterface $logger Logger instance to assign

at line 44
object create(string $service, array $params = array())

Note: While the returned object is used as a singleton (by the originating Injector->get() call), this cache object shouldn't be a singleton itself - it has varying constructor args for the same service name.

Parameters

string $service The class name of the service.
array $params The constructor parameters.

Return Value

object The created service instances.

at line 79
CacheInterface createCache(string $class, array $args)

Create cache directly without config / injector

Parameters

string $class
array $args

Return Value

CacheInterface