PHP Class AssetManager\Service\AssetManager

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

Protected Properties

Свойство Type Description
$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

Méthodes publiques

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

Méthodes protégées

Méthode Description
resolve ( Zend\Stdlib\RequestInterface $request ) : mixed Resolve the request to a file.
setConfig ( array $config ) Set the config

Method Details

__construct() public méthode

Constructor
public __construct ( AssetManager\Resolver\ResolverInterface $resolver, array $config = [] ) : AssetManager
$resolver AssetManager\Resolver\ResolverInterface
$config array
Résultat AssetManager

assetSetOnResponse() public méthode

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

getAssetCacheManager() public méthode

Get the AssetCacheManager
public getAssetCacheManager ( ) : AssetCacheManager
Résultat AssetCacheManager

getAssetFilterManager() public méthode

Get the AssetFilterManager
public getAssetFilterManager ( ) : AssetManager\Service\AssetFilterManager
Résultat AssetManager\Service\AssetFilterManager

getResolver() public méthode

Get the resolver used by the asset manager
public getResolver ( ) : AssetManager\Resolver\ResolverInterface
Résultat AssetManager\Resolver\ResolverInterface

resolve() protected méthode

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

resolvesToAsset() public méthode

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

setAssetCacheManager() public méthode

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

setAssetFilterManager() public méthode

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

setAssetOnResponse() public méthode

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

setConfig() protected méthode

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

setResolver() public méthode

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

Property Details

$asset protected_oe property

The asset
protected $asset

$assetSetOnResponse protected_oe property

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

$cacheManager protected_oe property

The AssetCacheManager service.
protected $cacheManager

$config protected_oe property

The asset_manager configuration
protected $config

$filterManager protected_oe property

The AssetFilterManager service.
protected $filterManager

$path protected_oe property

The requested path
protected $path

$resolver protected_oe property

protected ResolverInterface,AssetManager\Resolver $resolver
Résultat AssetManager\Resolver\ResolverInterface