Open Journal Systems  3.3.0
Guzzle\Service\CachingConfigLoader Class Reference
Inheritance diagram for Guzzle\Service\CachingConfigLoader:
Guzzle\Service\ConfigLoaderInterface

Public Member Functions

 __construct (ConfigLoaderInterface $loader, CacheAdapterInterface $cache)
 
 load ($config, array $options=array())
 

Protected Attributes

 $cache
 
 $loader
 

Detailed Description

Decorator that adds caching to a service description loader

Definition at line 10 of file CachingConfigLoader.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Service\CachingConfigLoader::__construct ( ConfigLoaderInterface  $loader,
CacheAdapterInterface  $cache 
)
Parameters
ConfigLoaderInterface$loaderLoader used to load the config when there is a cache miss
CacheAdapterInterface$cacheObject used to cache the loaded result

Definition at line 28 of file CachingConfigLoader.php.

References Guzzle\Service\CachingConfigLoader\$cache, and Guzzle\Service\CachingConfigLoader\$loader.

Member Function Documentation

◆ load()

Guzzle\Service\CachingConfigLoader::load (   $config,
array  $options = array() 
)

Loads configuration data and returns an array of the loaded result

Parameters
mixed$configData to load (filename or array of data)
array$optionsArray of options to use when loading
Returns
mixed

Implements Guzzle\Service\ConfigLoaderInterface.

Definition at line 34 of file CachingConfigLoader.php.

Field Documentation

◆ $cache

CacheAdapterInterface Guzzle\Service\CachingConfigLoader::$cache
protected

◆ $loader

ConfigLoaderInterface Guzzle\Service\CachingConfigLoader::$loader
protected

The documentation for this class was generated from the following file: