PHP Class AssetManager\Resolver\PathStackResolver

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

Protected Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

Méthode Description
normalizePath ( string $path ) : string Normalize a path for insertion in the stack

Method Details

__construct() public méthode

Constructor
public __construct ( )

addPath() public méthode

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

addPaths() public méthode

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

clearPaths() public méthode

Clear all paths
public clearPaths ( ) : void
Résultat void

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

getPaths() public méthode

Returns stack of paths
public getPaths ( ) : Zend\Stdlib\SplStack
Résultat Zend\Stdlib\SplStack

isLfiProtectionOn() public méthode

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

normalizePath() protected méthode

Normalize a path for insertion in the stack
protected normalizePath ( string $path ) : string
$path string
Résultat string

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

setPaths() public méthode

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
Résultat boolean

$mimeResolver protected_oe property

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

$paths protected_oe property

protected SplStack,Zend\Stdlib $paths
Résultat Zend\Stdlib\SplStack