PHP Class AssetManager\Resolver\PathStackResolver

Inheritance: implements AssetManager\Resolver\ResolverInterface, implements AssetManager\Resolver\MimeResolverAwareInterface
Datei anzeigen 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\SplStack

Public Methods

Method Description
__construct ( ) Constructor
addPath ( string $path ) Add a single path to the stack
addPaths ( array | Traversabl\Traversable $paths ) Add many paths to the stack at once
clearPaths ( ) : void Clear all paths
collect ( ) {@inheritDoc}
getMimeResolver ( ) : AssetManager\Service\MimeResolver Get the mime resolver
getPaths ( ) : Zend\Stdlib\SplStack Returns stack of paths
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

Constructor
public __construct ( )

addPath() public method

Add a single path to the stack
public addPath ( string $path )
$path string

addPaths() public method

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

clearPaths() public method

Clear all paths
public clearPaths ( ) : void
return void

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

Returns stack of paths
public getPaths ( ) : Zend\Stdlib\SplStack
return Zend\Stdlib\SplStack

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 SplStack,Zend\Stdlib $paths
return Zend\Stdlib\SplStack