class ManifestCacheFactory extends DefaultCacheFactory (View source)

Assists with building of manifest cache prior to config being available

Properties

protected string $args from  DefaultCacheFactory
protected LoggerInterface $logger from  DefaultCacheFactory

Methods

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

No description

public
object
create(string $service, array $params = [])

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.

protected
bool
isAPCUSupported()

Determine if apcu is supported

protected
bool
isPHPFilesSupported()

Determine if PHP files is supported

public
CacheInterface
createCache(string $class, array $args)

Create cache directly without config / injector

Details

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

No description

Parameters

array $args

List of global options to merge with args during create()

LoggerInterface $logger

Logger instance to assign

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

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.

protected bool isAPCUSupported()

Determine if apcu is supported

Return Value

bool

protected bool isPHPFilesSupported()

Determine if PHP files is supported

Return Value

bool

CacheInterface createCache(string $class, array $args)

Create cache directly without config / injector

Parameters

string $class
array $args

Return Value

CacheInterface