PHP Class AssetManager\Service\AssetCacheManager

Afficher le fichier Open project: rwoverdijk/assetmanager Class Usage Examples

Protected Properties

Свойство Type Description
$config Cache configuration.
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

setCache() public méthode

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
Résultat Assetic\Asset\AssetCache

Property Details

$config protected_oe property

Cache configuration.
protected $config

$serviceLocator protected_oe property

protected ServiceLocatorInterface,Zend\ServiceManager $serviceLocator
Résultat Zend\ServiceManager\ServiceLocatorInterface