PHP Class AssetManager\Resolver\ConcatResolver

Concatted files are added as an StringAsset and filters get applied to concatenated string.
Inheritance: implements AssetManager\Resolver\ResolverInterface, implements AssetManager\Resolver\AggregateResolverAwareInterface, implements AssetManager\Service\AssetFilterManagerAwareInterface, implements AssetManager\Resolver\MimeResolverAwareInterface
ファイルを表示 Open project: rwoverdijk/assetmanager Class Usage Examples

Protected Properties

Property Type Description
$aggregateResolver null | AssetManager\Resolver\ResolverInterface
$concats the concats
$filterManager The filterManager service.
$mimeResolver The mime resolver.

Public Methods

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

Method Details

__construct() public method

Instantiate and optionally populate concats.
public __construct ( array | Traversabl\Traversable $concats = [] )
$concats 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

getConcats() public method

Retrieve the concats
public getConcats ( ) : array
return array

getMimeResolver() public method

Get the mime resolver
public getMimeResolver ( ) : AssetManager\Service\MimeResolver
return AssetManager\Service\MimeResolver

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

setConcats() public method

Concats should be arrays or Traversable objects with name => path pairs
public setConcats ( array | Traversabl\Traversable $concats )
$concats array | Traversabl\Traversable

setMimeResolver() public method

Set the mime resolver
public setMimeResolver ( AssetManager\Service\MimeResolver $resolver )
$resolver AssetManager\Service\MimeResolver

Property Details

$aggregateResolver protected_oe property

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

$concats protected_oe property

the concats
protected $concats

$filterManager protected_oe property

The filterManager service.
protected $filterManager

$mimeResolver protected_oe property

The mime resolver.
protected $mimeResolver