PHP Class AssetManager\Resolver\AliasPathStackResolver

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

Protected Properties

Свойство Type Description
$aliases Array
$lfiProtectionOn boolean Flag indicating whether or not LFI protection for rendering view scripts is enabled
$mimeResolver AssetManager\Service\MimeResolver The mime resolver.

Méthodes publiques

Méthode Description
__construct ( array $aliases ) Constructor
collect ( ) {@inheritDoc}
getMimeResolver ( ) : AssetManager\Service\MimeResolver Get the mime resolver
isLfiProtectionOn ( ) : boolean Return status of LFI protection flag
resolve ( $name ) {@inheritDoc}
setLfiProtection ( boolean $flag ) : self Set LFI protection flag
setMimeResolver ( AssetManager\Service\MimeResolver $resolver ) Set the mime resolver

Private Methods

Méthode Description
addAlias ( string $alias, string $path ) Add a single alias to the stack
normalizePath ( string $path ) : string Normalize a path for insertion in the stack

Method Details

__construct() public méthode

Populate the array stack with a list of aliases and their corresponding paths
public __construct ( array $aliases )
$aliases array

collect() public méthode

{@inheritDoc}
public collect ( )

getMimeResolver() public méthode

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

isLfiProtectionOn() public méthode

Return status of LFI protection flag
public isLfiProtectionOn ( ) : boolean
Résultat boolean

resolve() public méthode

{@inheritDoc}
public resolve ( $name )

setLfiProtection() public méthode

Set LFI protection flag
public setLfiProtection ( boolean $flag ) : self
$flag boolean
Résultat self

setMimeResolver() public méthode

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

Property Details

$aliases protected_oe property

protected Array $aliases
Résultat Array

$lfiProtectionOn protected_oe property

Flag indicating whether or not LFI protection for rendering view scripts is enabled
protected bool $lfiProtectionOn
Résultat boolean

$mimeResolver protected_oe property

The mime resolver.
protected MimeResolver,AssetManager\Service $mimeResolver
Résultat AssetManager\Service\MimeResolver