PHP Class eZ\Bundle\EzPublishCoreBundle\HttpCache

Inheritance: extends FOS\HttpCacheBundle\SymfonyCache\EventDispatchingHttpCache
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes protégées

Méthode Description
createStore ( )
getDefaultSubscribers ( )
getInternalAllowedIPs ( ) : array Returns an array of allowed IPs for Http PURGE requests.
invalidate ( Request $request, boolean $catch = false ) : Response Handle invalidation, including Http PURGE requests.
isInternalIPAllowed ( string $ip ) : boolean Checks if $ip is allowed for Http PURGE requests.
isInternalRequestAllowed ( Request $request ) : boolean Checks if current purge request is allowed.

Method Details

createStore() protected méthode

protected createStore ( )

getDefaultSubscribers() protected méthode

protected getDefaultSubscribers ( )

getInternalAllowedIPs() protected méthode

Returns an array of allowed IPs for Http PURGE requests.
protected getInternalAllowedIPs ( ) : array
Résultat array

invalidate() protected méthode

All non-allowed PURGE requests will receive an HTTP 405.
protected invalidate ( Request $request, boolean $catch = false ) : Response
$request Symfony\Component\HttpFoundation\Request
$catch boolean
Résultat Symfony\Component\HttpFoundation\Response

isInternalIPAllowed() protected méthode

Checks if $ip is allowed for Http PURGE requests.
protected isInternalIPAllowed ( string $ip ) : boolean
$ip string
Résultat boolean

isInternalRequestAllowed() protected méthode

This method can be overridden to extend the allowance test.
protected isInternalRequestAllowed ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
Résultat boolean