You are here

protected function XcacheCache::checkAuthorization in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php \Doctrine\Common\Cache\XcacheCache::checkAuthorization()

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 vendor/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php
Flushes all cache entries.
XcacheCache::doGetStats in vendor/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php
Retrieves cached information from the data store.

File

vendor/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.');
  }
}