function PhpBackendFactory::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Cache/PhpBackendFactory.php \Drupal\Core\Cache\PhpBackendFactory::__construct()
  2. 10 core/lib/Drupal/Core/Cache/PhpBackendFactory.php \Drupal\Core\Cache\PhpBackendFactory::__construct()
  3. 9 core/lib/Drupal/Core/Cache/PhpBackendFactory.php \Drupal\Core\Cache\PhpBackendFactory::__construct()
  4. 8.9.x core/lib/Drupal/Core/Cache/PhpBackendFactory.php \Drupal\Core\Cache\PhpBackendFactory::__construct()

Constructs a PhpBackendFactory object.

Parameters

\Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum provider.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

core/lib/Drupal/Core/Cache/PhpBackendFactory.php, line 27

Class

PhpBackendFactory
Defines a PHP cache backend factory.

Namespace

Drupal\Core\Cache

Code

public function __construct(CacheTagsChecksumInterface $checksum_provider, protected TimeInterface $time) {
  $this->checksumProvider = $checksum_provider;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.