Doctrine\Common\Cache\XcacheCache::checkAuthorization PHP Method

checkAuthorization() protected method

Checks that xcache.admin.enable_auth is Off.
protected checkAuthorization ( ) : void
return void
    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.');
        }
    }