PHP Class eZ\Bundle\EzPublishCoreBundle\HttpCache

Inheritance: extends FOS\HttpCacheBundle\SymfonyCache\EventDispatchingHttpCache
Show file Open project: ezsystems/ezpublish-kernel

Protected Methods

Method 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 method

protected createStore ( )

getDefaultSubscribers() protected method

protected getDefaultSubscribers ( )

getInternalAllowedIPs() protected method

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

invalidate() protected method

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
return Symfony\Component\HttpFoundation\Response

isInternalIPAllowed() protected method

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

isInternalRequestAllowed() protected method

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