PHP Class AssetManager\Service\AssetCacheManager

Datei anzeigen Open project: rwoverdijk/assetmanager Class Usage Examples

Protected Properties

Property Type Description
$config Cache configuration.
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface

Public Methods

Method Description
__construct ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, array $config ) : AssetCacheManager Construct the AssetCacheManager
setCache ( string $path, Assetic\Asset\AssetInterface $asset ) : Assetic\Asset\AssetCache Set the cache (if any) on the asset, and return the new AssetCache.

Private Methods

Method Description
classMapper ( $class ) : string Class mapper to provide backwards compatibility
getCacheProviderConfig ( $path ) : null | array Get the cache provider config. Use default values if defined.
getProvider ( $path ) : array Get the cache provider. First checks to see if the provider is callable, then will attempt to get it from the service locator, finally will fallback to a class mapper.

Method Details

__construct() public method

Construct the AssetCacheManager
public __construct ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, array $config ) : AssetCacheManager
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface
$config array
return AssetCacheManager

setCache() public method

Set the cache (if any) on the asset, and return the new AssetCache.
public setCache ( string $path, Assetic\Asset\AssetInterface $asset ) : Assetic\Asset\AssetCache
$path string Path to asset
$asset Assetic\Asset\AssetInterface Assetic Asset Interface
return Assetic\Asset\AssetCache

Property Details

$config protected_oe property

Cache configuration.
protected $config

$serviceLocator protected_oe property

protected ServiceLocatorInterface,Zend\ServiceManager $serviceLocator
return Zend\ServiceManager\ServiceLocatorInterface