You are here

static function AbstractQueuedCachedClassLoader::create in X Autoload 7.5

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

Parameters

ClassFinderInterface $finder:

CacheManager $cacheManager:

Return value

self

Throws

\Exception

File

src/ClassLoader/AbstractQueuedCachedClassLoader.php, line 64

Class

AbstractQueuedCachedClassLoader
Bass class for cached class loader decorators where cache entries cannot be written one by one, but have to be written all at once instead.

Namespace

Drupal\xautoload\ClassLoader

Code

static function create($finder, $cacheManager) {

  /** @var self $loader */
  $loader = new static($finder);
  $cacheManager
    ->observeCachePrefix($loader);
  return $loader;
}