PHP Класс AssetManager\Service\AssetCacheManager

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config Cache configuration.
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный метод

Construct the AssetCacheManager
public __construct ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, array $config ) : AssetCacheManager
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface
$config array
Результат AssetCacheManager

setCache() публичный метод

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
Результат Assetic\Asset\AssetCache

Описание свойств

$config защищенное свойство

Cache configuration.
protected $config

$serviceLocator защищенное свойство

protected ServiceLocatorInterface,Zend\ServiceManager $serviceLocator
Результат Zend\ServiceManager\ServiceLocatorInterface