You are here

KeyValueDatabaseExpirableFactory.php in Service Container 7

File

src/KeyValueStore/KeyValueDatabaseExpirableFactory.php
View source
<?php

/**
 * @file
 * Contains \Drupal\service_container\KeyValueStore\KeyValueDatabaseExpirableFactory.
 */
namespace Drupal\service_container\KeyValueStore;


/**
 * @codeCoverageIgnore
 */
class KeyValueDatabaseExpirableFactory extends \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory {

  /**
   * {@inheritdoc}
   */
  public function get($collection) {
    if (!isset($this->storages[$collection])) {
      $this->storages[$collection] = new DatabaseStorageExpirable($collection, $this->serializer, $this->connection);
    }
    return $this->storages[$collection];
  }

}

Classes

Namesort descending Description
KeyValueDatabaseExpirableFactory @codeCoverageIgnore