PHP Class AssetManager\Resolver\AliasPathStackResolver

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

Protected Properties

Property 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.

Public Methods

Method 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

Method 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 method

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

collect() public method

{@inheritDoc}
public collect ( )

getMimeResolver() public method

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

isLfiProtectionOn() public method

Return status of LFI protection flag
public isLfiProtectionOn ( ) : boolean
return boolean

resolve() public method

{@inheritDoc}
public resolve ( $name )

setLfiProtection() public method

Set LFI protection flag
public setLfiProtection ( boolean $flag ) : self
$flag boolean
return self

setMimeResolver() public method

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

Property Details

$aliases protected_oe property

protected Array $aliases
return Array

$lfiProtectionOn protected_oe property

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

$mimeResolver protected_oe property

The mime resolver.
protected MimeResolver,AssetManager\Service $mimeResolver
return AssetManager\Service\MimeResolver