PHP 클래스 AssetManager\Service\AssetManager

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

보호된 프로퍼티들

프로퍼티 타입 설명
$asset The asset
$assetSetOnResponse Whether this instance has at least one asset successfully set on response
$cacheManager The AssetCacheManager service.
$config The asset_manager configuration
$filterManager The AssetFilterManager service.
$path The requested path
$resolver AssetManager\Resolver\ResolverInterface

공개 메소드들

메소드 설명
__construct ( AssetManager\Resolver\ResolverInterface $resolver, array $config = [] ) : AssetManager Constructor
assetSetOnResponse ( ) : boolean Returns true if this instance of asset manager has at least one asset successfully set on response
getAssetCacheManager ( ) : AssetCacheManager Get the AssetCacheManager
getAssetFilterManager ( ) : AssetManager\Service\AssetFilterManager Get the AssetFilterManager
getResolver ( ) : AssetManager\Resolver\ResolverInterface Get the resolver used by the asset manager
resolvesToAsset ( Zend\Stdlib\RequestInterface $request ) : boolean Check if the request resolves to an asset.
setAssetCacheManager ( AssetCacheManager $cacheManager ) Set the AssetCacheManager.
setAssetFilterManager ( AssetManager\Service\AssetFilterManager $filterManager ) Set the AssetFilterManager.
setAssetOnResponse ( Zend\Stdlib\ResponseInterface $response ) : Zend\Stdlib\ResponseInterface Set the asset on the response, including headers and content.
setResolver ( AssetManager\Resolver\ResolverInterface $resolver ) Set the resolver to use in the asset manager

보호된 메소드들

메소드 설명
resolve ( Zend\Stdlib\RequestInterface $request ) : mixed Resolve the request to a file.
setConfig ( array $config ) Set the config

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( AssetManager\Resolver\ResolverInterface $resolver, array $config = [] ) : AssetManager
$resolver AssetManager\Resolver\ResolverInterface
$config array
리턴 AssetManager

assetSetOnResponse() 공개 메소드

Returns true if this instance of asset manager has at least one asset successfully set on response
public assetSetOnResponse ( ) : boolean
리턴 boolean

getAssetCacheManager() 공개 메소드

Get the AssetCacheManager
public getAssetCacheManager ( ) : AssetCacheManager
리턴 AssetCacheManager

getAssetFilterManager() 공개 메소드

Get the AssetFilterManager
public getAssetFilterManager ( ) : AssetManager\Service\AssetFilterManager
리턴 AssetManager\Service\AssetFilterManager

getResolver() 공개 메소드

Get the resolver used by the asset manager
public getResolver ( ) : AssetManager\Resolver\ResolverInterface
리턴 AssetManager\Resolver\ResolverInterface

resolve() 보호된 메소드

Resolve the request to a file.
protected resolve ( Zend\Stdlib\RequestInterface $request ) : mixed
$request Zend\Stdlib\RequestInterface
리턴 mixed false when not found, AssetInterface when resolved.

resolvesToAsset() 공개 메소드

Check if the request resolves to an asset.
public resolvesToAsset ( Zend\Stdlib\RequestInterface $request ) : boolean
$request Zend\Stdlib\RequestInterface
리턴 boolean

setAssetCacheManager() 공개 메소드

Set the AssetCacheManager.
public setAssetCacheManager ( AssetCacheManager $cacheManager )
$cacheManager AssetCacheManager

setAssetFilterManager() 공개 메소드

Set the AssetFilterManager.
public setAssetFilterManager ( AssetManager\Service\AssetFilterManager $filterManager )
$filterManager AssetManager\Service\AssetFilterManager

setAssetOnResponse() 공개 메소드

Set the asset on the response, including headers and content.
public setAssetOnResponse ( Zend\Stdlib\ResponseInterface $response ) : Zend\Stdlib\ResponseInterface
$response Zend\Stdlib\ResponseInterface
리턴 Zend\Stdlib\ResponseInterface

setConfig() 보호된 메소드

Set the config
protected setConfig ( array $config )
$config array

setResolver() 공개 메소드

Set the resolver to use in the asset manager
public setResolver ( AssetManager\Resolver\ResolverInterface $resolver )
$resolver AssetManager\Resolver\ResolverInterface

프로퍼티 상세

$asset 보호되어 있는 프로퍼티

The asset
protected $asset

$assetSetOnResponse 보호되어 있는 프로퍼티

Whether this instance has at least one asset successfully set on response
protected $assetSetOnResponse

$cacheManager 보호되어 있는 프로퍼티

The AssetCacheManager service.
protected $cacheManager

$config 보호되어 있는 프로퍼티

The asset_manager configuration
protected $config

$filterManager 보호되어 있는 프로퍼티

The AssetFilterManager service.
protected $filterManager

$path 보호되어 있는 프로퍼티

The requested path
protected $path

$resolver 보호되어 있는 프로퍼티

protected ResolverInterface,AssetManager\Resolver $resolver
리턴 AssetManager\Resolver\ResolverInterface