PHP 클래스 AssetCompress\Routing\Filter\AssetCompressorFilter

상속: extends Cake\Routing\DispatcherFilter
파일 보기 프로젝트 열기: markstory/asset_compress

공개 프로퍼티들

프로퍼티 타입 설명
$priority integer Filter priority, we need it to run before router

보호된 프로퍼티들

프로퍼티 타입 설명
$config MiniAsset\AssetConfig Object containing configuration settings for asset compressor

공개 메소드들

메소드 설명
beforeDispatch ( Cake\Event\Event $event ) : Response | null Checks if request is for a compiled asset, otherwise skip any operation

보호된 메소드들

메소드 설명
_getConfig ( ) : AssetConfig Config setter, used for testing the filter.
getName ( AssetConfig $config, string $url ) : boolean | string Returns the build name for a requested asset

메소드 상세

_getConfig() 보호된 메소드

Config setter, used for testing the filter.
protected _getConfig ( ) : AssetConfig
리턴 MiniAsset\AssetConfig The completed config instance.

beforeDispatch() 공개 메소드

Checks if request is for a compiled asset, otherwise skip any operation
public beforeDispatch ( Cake\Event\Event $event ) : Response | null
$event Cake\Event\Event containing the request and response object
리턴 Cake\Network\Response | null Response if the client is requesting a recognized asset, null otherwise

getName() 보호된 메소드

Returns the build name for a requested asset
protected getName ( AssetConfig $config, string $url ) : boolean | string
$config MiniAsset\AssetConfig The config object to use.
$url string The url to get an asset name from.
리턴 boolean | string false if no build can be parsed from URL with url path otherwise

프로퍼티 상세

$config 보호되어 있는 프로퍼티

Object containing configuration settings for asset compressor
protected AssetConfig,MiniAsset $config
리턴 MiniAsset\AssetConfig

$priority 공개적으로 프로퍼티

Filter priority, we need it to run before router
public int $priority
리턴 integer