PHP Класс AssetCompress\Routing\Filter\AssetCompressorFilter

Наследование: extends Cake\Routing\DispatcherFilter
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$priority integer Filter priority, we need it to run before router

Защищенные свойства (Protected)

Свойство Тип Описание
$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