StorageCacheFactory
in package
implements
FactoryInterface
Uses
PluginManagerLookupTrait
Storage cache factory.
Interfaces, Classes, Traits and Enums
- FactoryInterface
- Backwards-compatibility shim for FactoryInterface.
Table of Contents
- __invoke() : mixed
- createService() : mixed
- Create service
- lookupStorageAdapterPluginManager() : AdapterPluginManager
- Lookup the storage adapter plugin manager.
- lookupStoragePluginManager() : PluginManager
- Lookup the storage plugins plugin manager.
- prepareStorageFactory() : void
- Prepare the storage factory with the adapter and plugins plugin managers.
Methods
__invoke()
public
__invoke(ContainerInterface $container, mixed $requestedName[, array<string|int, mixed> $options = null ]) : mixed
Parameters
- $container : ContainerInterface
- $requestedName : mixed
- $options : array<string|int, mixed> = null
Return values
mixed —createService()
Create service
public
createService(ServiceLocatorInterface $serviceLocator) : mixed
Parameters
- $serviceLocator : ServiceLocatorInterface
Return values
mixed —lookupStorageAdapterPluginManager()
Lookup the storage adapter plugin manager.
private
lookupStorageAdapterPluginManager(ContainerInterface $container) : AdapterPluginManager
Returns the Zend\Cache\Storage\AdapterPluginManager service if present, or creates a new instance otherwise.
Parameters
- $container : ContainerInterface
Return values
AdapterPluginManager —lookupStoragePluginManager()
Lookup the storage plugins plugin manager.
private
lookupStoragePluginManager(ContainerInterface $container) : PluginManager
Returns the Zend\Cache\Storage\PluginManager service if present, or creates a new instance otherwise.
Parameters
- $container : ContainerInterface
Return values
PluginManager —prepareStorageFactory()
Prepare the storage factory with the adapter and plugins plugin managers.
private
prepareStorageFactory(ContainerInterface $container) : void
Parameters
- $container : ContainerInterface