function DatabaseBackendFactory::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php \Drupal\Core\Cache\DatabaseBackendFactory::__construct()
- 8.9.x core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php \Drupal\Core\Cache\DatabaseBackendFactory::__construct()
- 10 core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php \Drupal\Core\Cache\DatabaseBackendFactory::__construct()
Constructs the DatabaseBackendFactory object.
Parameters
\Drupal\Core\Database\Connection $connection: Database connection
\Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum provider.
\Drupal\Core\Site\Settings $settings: (optional) The site settings.
\Drupal\Component\Serialization\ObjectAwareSerializationInterface|null $serializer: (optional) The serializer to use.
\Drupal\Component\Datetime\TimeInterface|null $time: The time service.
Throws
\BadMethodCallException
File
-
core/
lib/ Drupal/ Core/ Cache/ DatabaseBackendFactory.php, line 42
Class
Namespace
Drupal\Core\CacheCode
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, Settings $settings, ObjectAwareSerializationInterface $serializer, TimeInterface $time) {
$this->connection = $connection;
$this->checksumProvider = $checksum_provider;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.