PHP Class Gc\Mvc\Resolver\AssetAliasPathStack

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

Protected Properties

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

Méthodes publiques

Méthode Description
__construct ( Zend\ServiceManager\ServiceManager $serviceManager = null ) Constructor
addAlias ( string $alias, string $path ) : void Add a single alias to the stack
getMimeResolver ( ) : AssetManager\Service\MimeResolver Get the mime resolver
isLfiProtectionOn ( ) : boolean Return status of LFI protection flag
resolve ( string $name ) : null | Assetic\Asset\FileAsset Resolve an Asset
setLfiProtection ( boolean $flag ) : self Set LFI protection flag
setMimeResolver ( AssetManager\Service\MimeResolver $resolver ) : void Set the mime resolver

Méthodes protégées

Méthode Description
loadDatatypesAliases ( ) : void Load Datatypes aliases
loadModulesAliases ( ) : void Load module aliases
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 ( Zend\ServiceManager\ServiceManager $serviceManager = null )
$serviceManager Zend\ServiceManager\ServiceManager Service Manager

addAlias() public méthode

Add a single alias to the stack
public addAlias ( string $alias, string $path ) : void
$alias string Alias
$path string Path
Résultat void

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

loadDatatypesAliases() protected méthode

Load Datatypes aliases
protected loadDatatypesAliases ( ) : void
Résultat void

loadModulesAliases() protected méthode

Load module aliases
protected loadModulesAliases ( ) : void
Résultat void

normalizePath() protected méthode

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

resolve() public méthode

Resolve an Asset
public resolve ( string $name ) : null | Assetic\Asset\FileAsset
$name string The path to resolve.
Résultat null | Assetic\Asset\FileAsset Asset instance when found, null when not.

setLfiProtection() public méthode

Set LFI protection flag
public setLfiProtection ( boolean $flag ) : self
$flag boolean Define if lfi protection is active
Résultat self

setMimeResolver() public méthode

Set the mime resolver
public setMimeResolver ( AssetManager\Service\MimeResolver $resolver ) : void
$resolver AssetManager\Service\MimeResolver Resolver
Résultat void

Property Details

$aliases protected_oe property

Aliases
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

$serviceLocator protected_oe property

The service manager.
protected ServiceManager,Zend\ServiceManager $serviceLocator
Résultat Zend\ServiceManager\ServiceManager