"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Lock/Store/CombinedStore.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

CombinedStore.php  (phplist-3.4.5.tgz):CombinedStore.php  (phplist-3.4.6.tgz)
skipping to change at line 40 skipping to change at line 40
{ {
use LoggerAwareTrait; use LoggerAwareTrait;
use ExpiringStoreTrait; use ExpiringStoreTrait;
/** @var StoreInterface[] */ /** @var StoreInterface[] */
private $stores; private $stores;
/** @var StrategyInterface */ /** @var StrategyInterface */
private $strategy; private $strategy;
/** /**
* @param StoreInterface[] $stores The list of synchronized stores * @param StoreInterface[] $stores The list of synchronized stores
* @param StrategyInterface $strategy
* *
* @throws InvalidArgumentException * @throws InvalidArgumentException
*/ */
public function __construct(array $stores, StrategyInterface $strategy) public function __construct(array $stores, StrategyInterface $strategy)
{ {
foreach ($stores as $store) { foreach ($stores as $store) {
if (!$store instanceof StoreInterface) { if (!$store instanceof StoreInterface) {
throw new InvalidArgumentException(sprintf('The store must imple ment "%s". Got "%s".', StoreInterface::class, \get_class($store))); throw new InvalidArgumentException(sprintf('The store must imple ment "%s". Got "%s".', StoreInterface::class, \get_class($store)));
} }
} }
skipping to change at line 97 skipping to change at line 96
$this->logger->warning('Failed to store the "{resource}" lock. Quorum ha s not been met.', ['resource' => $key, 'success' => $successCount, 'failure' => $failureCount]); $this->logger->warning('Failed to store the "{resource}" lock. Quorum ha s not been met.', ['resource' => $key, 'success' => $successCount, 'failure' => $failureCount]);
// clean up potential locks // clean up potential locks
$this->delete($key); $this->delete($key);
throw new LockConflictedException(); throw new LockConflictedException();
} }
public function waitAndSave(Key $key) public function waitAndSave(Key $key)
{ {
throw new NotSupportedException(sprintf('The store "%s" does not support s blocking locks.', \get_class($this))); throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function putOffExpiration(Key $key, $ttl) public function putOffExpiration(Key $key, $ttl)
{ {
$successCount = 0; $successCount = 0;
$failureCount = 0; $failureCount = 0;
$storesCount = \count($this->stores); $storesCount = \count($this->stores);
 End of changes. 2 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)