Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CombinedStore.php

function CombinedStore::__construct

Parameters

PersistingStoreInterface[] $stores The list of synchronized stores:

Throws

InvalidArgumentException

File

vendor/symfony/lock/Store/CombinedStore.php, line 38

Class

CombinedStore
CombinedStore is a PersistingStoreInterface implementation able to manage and synchronize several StoreInterfaces.

Namespace

Symfony\Component\Lock\Store

Code

public function __construct(array $stores, StrategyInterface $strategy) {
    foreach ($stores as $store) {
        if (!$store instanceof PersistingStoreInterface) {
            throw new InvalidArgumentException(\sprintf('The store must implement "%s". Got "%s".', PersistingStoreInterface::class, get_debug_type($store)));
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal