PHP 클래스 AssetManager\Service\AssetCacheManager

파일 보기 프로젝트 열기: rwoverdijk/assetmanager 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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