PHP Class AssetManager\Resolver\CollectionResolver

Collections are strictly checked by mime-type, and added to an AssetCollection when all checks passed.
Inheritance: implements AssetManager\Resolver\ResolverInterface, implements AssetManager\Resolver\AggregateResolverAwareInterface, implements AssetManager\Service\AssetFilterManagerAwareInterface
显示文件 Open project: rwoverdijk/assetmanager Class Usage Examples

Protected Properties

Property Type Description
$aggregateResolver AssetManager\Resolver\ResolverInterface
$collections the collections
$filterManager The filterManager service.

Public Methods

Method Description
__construct ( array | Traversabl\Traversable $collections = [] ) Constructor
collect ( ) {@inheritDoc}
getAggregateResolver ( ) : AssetManager\Resolver\ResolverInterface Get the aggregate resolver.
getAssetFilterManager ( ) : AssetManager\Service\AssetFilterManager Get the AssetFilterManager
getCollections ( ) : array Retrieve the collections
resolve ( $name ) {@inheritDoc}
setAggregateResolver ( AssetManager\Resolver\ResolverInterface $aggregateResolver ) Set the aggregate resolver.
setAssetFilterManager ( AssetManager\Service\AssetFilterManager $filterManager ) Set the AssetFilterManager.
setCollections ( array | Traversabl\Traversable $collections ) Set (overwrite) collections

Method Details

__construct() public method

Instantiate and optionally populate collections.
public __construct ( array | Traversabl\Traversable $collections = [] )
$collections array | Traversabl\Traversable

collect() public method

{@inheritDoc}
public collect ( )

getAggregateResolver() public method

Get the aggregate resolver.
public getAggregateResolver ( ) : AssetManager\Resolver\ResolverInterface
return AssetManager\Resolver\ResolverInterface

getAssetFilterManager() public method

Get the AssetFilterManager
public getAssetFilterManager ( ) : AssetManager\Service\AssetFilterManager
return AssetManager\Service\AssetFilterManager

getCollections() public method

Retrieve the collections
public getCollections ( ) : array
return array

resolve() public method

{@inheritDoc}
public resolve ( $name )

setAggregateResolver() public method

Set the aggregate resolver.
public setAggregateResolver ( AssetManager\Resolver\ResolverInterface $aggregateResolver )
$aggregateResolver AssetManager\Resolver\ResolverInterface

setAssetFilterManager() public method

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

setCollections() public method

Collections should be arrays or Traversable objects with name => path pairs
public setCollections ( array | Traversabl\Traversable $collections )
$collections array | Traversabl\Traversable

Property Details

$aggregateResolver protected_oe property

protected ResolverInterface,AssetManager\Resolver $aggregateResolver
return AssetManager\Resolver\ResolverInterface

$collections protected_oe property

the collections
protected $collections

$filterManager protected_oe property

The filterManager service.
protected $filterManager