PHP Class AssetManager\Resolver\MapResolver

Inheritance: implements AssetManager\Resolver\ResolverInterface, implements AssetManager\Resolver\MimeResolverAwareInterface
Afficher le fichier Open project: rwoverdijk/assetmanager Class Usage Examples

Protected Properties

Свойство Type Description
$map array
$mimeResolver The mime resolver.

Méthodes publiques

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

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

collect() public méthode

{@inheritDoc}
public collect ( )

getMap() public méthode

Retrieve the map
public getMap ( ) : array
Résultat array

getMimeResolver() public méthode

Get the mime resolver
public getMimeResolver ( ) : AssetManager\Service\MimeResolver
Résultat AssetManager\Service\MimeResolver

resolve() public méthode

{@inheritDoc}
public resolve ( $name )

setMap() public méthode

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

setMimeResolver() public méthode

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

Property Details

$map protected_oe property

protected array $map
Résultat array

$mimeResolver protected_oe property

The mime resolver.
protected $mimeResolver