eZPublishCommunityProject  2013.9
eZ\Bundle\EzPublishCoreBundle\HttpCache Class Reference
+ Inheritance diagram for eZ\Bundle\EzPublishCoreBundle\HttpCache:
+ Collaboration diagram for eZ\Bundle\EzPublishCoreBundle\HttpCache:

Public Member Functions

 handle (Request $request, $type=HttpKernelInterface::MASTER_REQUEST, $catch=true)
 

Protected Member Functions

 createStore ()
 
 getInternalAllowedIPs ()
 Returns an array of allowed IPs for Http PURGE requests. More...
 
 invalidate (Request $request, $catch=false)
 Handle invalidation, including Http PURGE requests. More...
 
 isInternalIPAllowed ($ip)
 Checks if $ip is allowed for Http PURGE requests. More...
 
 isInternalRequestAllowed (Request $request)
 Checks if current purge request is allowed. More...
 

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\HttpCache::createStore ( )
protected
eZ\Bundle\EzPublishCoreBundle\HttpCache::getInternalAllowedIPs ( )
protected

Returns an array of allowed IPs for Http PURGE requests.

Returns
array

Referenced by eZ\Bundle\EzPublishCoreBundle\HttpCache\isInternalIPAllowed().

eZ\Bundle\EzPublishCoreBundle\HttpCache::handle ( Request  $request,
  $type = HttpKernelInterface::MASTER_REQUEST,
  $catch = true 
)
eZ\Bundle\EzPublishCoreBundle\HttpCache::invalidate ( Request  $request,
  $catch = false 
)
protected

Handle invalidation, including Http PURGE requests.

All non-allowed PURGE requests will receive an HTTP 405

Parameters
\Symfony\Component\HttpFoundation\Request$request
boolean$catch
Returns
eZ\Bundle\EzPublishCoreBundle\HttpCache::isInternalIPAllowed (   $ip)
protected

Checks if $ip is allowed for Http PURGE requests.

Todo:
Check subnets
Parameters
string$ip
Returns
boolean

Referenced by eZ\Bundle\EzPublishCoreBundle\HttpCache\isInternalRequestAllowed().

eZ\Bundle\EzPublishCoreBundle\HttpCache::isInternalRequestAllowed ( Request  $request)
protected

Checks if current purge request is allowed.

This method can be overridden to extend the allowance test.

Parameters
\Symfony\Component\HttpFoundation\Request$request
Returns
boolean

Referenced by eZ\Bundle\EzPublishCoreBundle\HttpCache\invalidate().


The documentation for this class was generated from the following file: