Property | Type | Description | |
---|---|---|---|
$config | Cache configuration. | ||
$serviceLocator | Zend\ServiceManager\ServiceLocatorInterface |
Method | Description | |
---|---|---|
__construct ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, array $config ) : |
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. |
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. |
public __construct ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, array $config ) : |
||
$serviceLocator | Zend\ServiceManager\ServiceLocatorInterface | |
$config | array | |
return |