You are here

public function DepcalcCacheBackend::__construct in Dependency Calculation 8

DepcalcCacheBackend constructor.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $backend: The CacheBackendInterface object to decorate.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.

Throws

\ReflectionException

File

src/Cache/DepcalcCacheBackend.php, line 65

Class

DepcalcCacheBackend
Class DepcalcCacheBackend

Namespace

Drupal\depcalc\Cache

Code

public function __construct(CacheBackendInterface $backend, EventDispatcherInterface $dispatcher) {
  $this->backend = $backend;
  $this->dispatcher = $dispatcher;
  if ($backend instanceof DatabaseBackend) {
    $this
      ->getProperties($backend);
  }
}