PHP Class AssetManager\Resolver\PrioritizedPathsResolver

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

Protected Properties

Property Type Description
$lfiProtectionOn boolean Flag indicating whether or not LFI protection for rendering view scripts is enabled
$mimeResolver AssetManager\Service\MimeResolver The mime resolver.
$paths Zend\Stdlib\PriorityQueue | AssetManager\Resolver\ResolverInterface[]

Public Methods

Method Description
__construct ( ) Constructor.
addPath ( $path ) {@inheritDoc}
addPaths ( array | Traversabl\Traversable $paths ) : self Add many paths to the stack at once
clearPaths ( ) {@inheritDoc}
collect ( ) {@inheritDoc}
getMimeResolver ( ) : AssetManager\Service\MimeResolver Get the mime resolver
getPaths ( ) {@inheritDoc}
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
setPaths ( Traversabl\Traversable | array $paths ) Rest the path stack to the paths provided

Protected Methods

Method Description
normalizePath ( string $path ) : string Normalize a path for insertion in the stack

Method Details

__construct() public method

Construct object and set a new PriorityQueue.
public __construct ( )

addPath() public method

{@inheritDoc}
public addPath ( $path )

addPaths() public method

Add many paths to the stack at once
public addPaths ( array | Traversabl\Traversable $paths ) : self
$paths array | Traversabl\Traversable
return self

clearPaths() public method

{@inheritDoc}
public clearPaths ( )

collect() public method

{@inheritDoc}
public collect ( )

getMimeResolver() public method

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

getPaths() public method

{@inheritDoc}
public getPaths ( )

isLfiProtectionOn() public method

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

normalizePath() protected method

Normalize a path for insertion in the stack
protected normalizePath ( string $path ) : string
$path string
return string

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

setPaths() public method

Rest the path stack to the paths provided
public setPaths ( Traversabl\Traversable | array $paths )
$paths Traversabl\Traversable | array

Property Details

$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

$paths protected_oe property

protected PriorityQueue,Zend\Stdlib|ResolverInterface[],AssetManager\Resolver $paths
return Zend\Stdlib\PriorityQueue | AssetManager\Resolver\ResolverInterface[]