/** * This method has side effects, so it is not the constructor. * * @return CacheManager */ static function create() { $prefix = variable_get('xautoload_cache_prefix', NULL); $manager = new self($prefix); if (empty($prefix)) { $manager->renewCachePrefix(); } return $manager; }
/** * This method has side effects, so it is not the constructor. * * @param \Drupal\xautoload\DrupalSystem\DrupalSystemInterface $system * * @return CacheManager */ static function create(DrupalSystemInterface $system) { $prefix = $system->variableGet(XAUTOLOAD_VARNAME_CACHE_PREFIX, NULL); $manager = new self($prefix, $system); if (empty($prefix)) { $manager->renewCachePrefix(); } return $manager; }
/** * This method has side effects, so it is not the constructor. * * @param \Drupal\xautoload\DrupalSystem\DrupalSystemInterface $system * * @return CacheManager */ static function create(DrupalSystemInterface $system) { $prefix = $system->variableGet('xautoload_cache_prefix', NULL); $manager = new self($prefix, $system); if (empty($prefix)) { $manager->renewCachePrefix(); } return $manager; }