Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }