You are here

protected function XcacheCache::checkAuthorization in Plug 7

Checks that xcache.admin.enable_auth is Off.

Return value

void

Throws

\BadMethodCallException When xcache.admin.enable_auth is On.

2 calls to XcacheCache::checkAuthorization()
XcacheCache::doFlush in lib/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php
Flushes all cache entries.
XcacheCache::doGetStats in lib/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php
Retrieves cached information from the data store.

File

lib/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php, line 86

Class

XcacheCache
Xcache cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function checkAuthorization() {
  if (ini_get('xcache.admin.enable_auth')) {
    throw new \BadMethodCallException('To use all features of \\Doctrine\\Common\\Cache\\XcacheCache, ' . 'you must set "xcache.admin.enable_auth" to "Off" in your php.ini.');
  }
}