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
Afficher le fichier Open project: rwoverdijk/assetmanager Class Usage Examples

Protected Properties

Свойство Type Description
$aggregateResolver AssetManager\Resolver\ResolverInterface
$collections the collections
$filterManager The filterManager service.

Méthodes publiques

Méthode 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 méthode

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

collect() public méthode

{@inheritDoc}
public collect ( )

getAggregateResolver() public méthode

Get the aggregate resolver.
public getAggregateResolver ( ) : AssetManager\Resolver\ResolverInterface
Résultat AssetManager\Resolver\ResolverInterface

getAssetFilterManager() public méthode

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

getCollections() public méthode

Retrieve the collections
public getCollections ( ) : array
Résultat array

resolve() public méthode

{@inheritDoc}
public resolve ( $name )

setAggregateResolver() public méthode

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

setAssetFilterManager() public méthode

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

setCollections() public méthode

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
Résultat AssetManager\Resolver\ResolverInterface

$collections protected_oe property

the collections
protected $collections

$filterManager protected_oe property

The filterManager service.
protected $filterManager