PHP Class AssetManager\Resolver\MapResolver

Inheritance: implements AssetManager\Resolver\ResolverInterface, implements AssetManager\Resolver\MimeResolverAwareInterface
Exibir arquivo Open project: rwoverdijk/assetmanager Class Usage Examples

Protected Properties

Property Type Description
$map array
$mimeResolver The mime resolver.

Public Methods

Method Description
__construct ( array | Traversabl\Traversable $map = [] ) Constructor
collect ( ) {@inheritDoc}
getMap ( ) : array Retrieve the map
getMimeResolver ( ) : AssetManager\Service\MimeResolver Get the mime resolver
resolve ( $name ) {@inheritDoc}
setMap ( array | Traversabl\Traversable $map ) Set (overwrite) map
setMimeResolver ( AssetManager\Service\MimeResolver $resolver ) Set the mime resolver

Method Details

__construct() public method

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

collect() public method

{@inheritDoc}
public collect ( )

getMap() public method

Retrieve the map
public getMap ( ) : 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 )

setMap() public method

Maps should be arrays or Traversable objects with name => path pairs
public setMap ( array | Traversabl\Traversable $map )
$map array | Traversabl\Traversable

setMimeResolver() public method

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

Property Details

$map protected_oe property

protected array $map
return array

$mimeResolver protected_oe property

The mime resolver.
protected $mimeResolver