function CombinedStore::__construct
Parameters
PersistingStoreInterface[] $stores The list of synchronized stores:
Throws
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\StoreCode
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)));
}
}
}