You are here

static function CacheManager::create in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 src/CacheManager/CacheManager.php \Drupal\xautoload\CacheManager\CacheManager::create()

This method has side effects, so it is not the constructor.

Return value

CacheManager

1 call to CacheManager::create()
ServiceFactory::cacheManager in lib/DIC/ServiceFactory.php

File

lib/CacheManager/CacheManager.php, line 31

Class

CacheManager

Namespace

Drupal\xautoload\CacheManager

Code

static function create() {
  $prefix = variable_get('xautoload_cache_prefix', NULL);
  $manager = new self($prefix);
  if (empty($prefix)) {
    $manager
      ->renewCachePrefix();
  }
  return $manager;
}