[Lock] remove all mention to StoreInterface in comments and tests

This commit is contained in:
Amrouche Hamza 2019-07-23 13:39:46 +02:00
parent a688787449
commit 699a88b2e7
No known key found for this signature in database
GPG Key ID: E45A3DA456145BC1
10 changed files with 17 additions and 17 deletions

View File

@ -23,7 +23,7 @@ use Symfony\Component\Lock\StoreInterface;
use Symfony\Component\Lock\Strategy\StrategyInterface;
/**
* CombinedStore is a StoreInterface implementation able to manage and synchronize several StoreInterfaces.
* CombinedStore is a PersistingStoreInterface implementation able to manage and synchronize several StoreInterfaces.
*
* @author Jérémy Derussé <jeremy@derusse.com>
*/

View File

@ -19,7 +19,7 @@ use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
/**
* FlockStore is a StoreInterface implementation using the FileSystem flock.
* FlockStore is a PersistingStoreInterface implementation using the FileSystem flock.
*
* Original implementation in \Symfony\Component\Filesystem\LockHandler.
*

View File

@ -18,7 +18,7 @@ use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
/**
* MemcachedStore is a StoreInterface implementation using Memcached as store engine.
* MemcachedStore is a PersistingStoreInterface implementation using Memcached as store engine.
*
* @author Jérémy Derussé <jeremy@derusse.com>
*/

View File

@ -22,7 +22,7 @@ use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
/**
* PdoStore is a StoreInterface implementation using a PDO connection.
* PdoStore is a PersistingStoreInterface implementation using a PDO connection.
*
* Lock metadata are stored in a table. You can use createTable() to initialize
* a correctly defined table.

View File

@ -20,7 +20,7 @@ use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
/**
* RedisStore is a StoreInterface implementation using Redis as store engine.
* RedisStore is a PersistingStoreInterface implementation using Redis as store engine.
*
* @author Jérémy Derussé <jeremy@derusse.com>
*/

View File

@ -21,7 +21,7 @@ use Symfony\Component\Lock\PersistingStoreInterface;
use Symfony\Component\Lock\StoreInterface;
/**
* RetryTillSaveStore is a StoreInterface implementation which decorate a non blocking StoreInterface to provide a
* RetryTillSaveStore is a PersistingStoreInterface implementation which decorate a non blocking PersistingStoreInterface to provide a
* blocking storage.
*
* @author Jérémy Derussé <jeremy@derusse.com>
@ -35,7 +35,7 @@ class RetryTillSaveStore implements PersistingStoreInterface, BlockingStoreInter
private $retryCount;
/**
* @param PersistingStoreInterface $decorated The decorated StoreInterface
* @param PersistingStoreInterface $decorated The decorated PersistingStoreInterface
* @param int $retrySleep Duration in ms between 2 retry
* @param int $retryCount Maximum amount of retry
*/

View File

@ -18,7 +18,7 @@ use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
/**
* SemaphoreStore is a StoreInterface implementation using Semaphore as store engine.
* SemaphoreStore is a PersistingStoreInterface implementation using Semaphore as store engine.
*
* @author Jérémy Derussé <jeremy@derusse.com>
*/

View File

@ -15,7 +15,7 @@ use Symfony\Component\Cache\Adapter\AbstractAdapter;
use Symfony\Component\Cache\Traits\RedisClusterProxy;
use Symfony\Component\Cache\Traits\RedisProxy;
use Symfony\Component\Lock\Exception\InvalidArgumentException;
use Symfony\Component\Lock\StoreInterface;
use Symfony\Component\Lock\PersistingStoreInterface;
/**
* StoreFactory create stores and connections.
@ -27,7 +27,7 @@ class StoreFactory
/**
* @param \Redis|\RedisArray|\RedisCluster|\Predis\Client|\Memcached|\Zookeeper|string $connection Connection or DSN or Store short name
*
* @return StoreInterface
* @return PersistingStoreInterface
*/
public static function createStore($connection)
{

View File

@ -19,7 +19,7 @@ use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
/**
* ZookeeperStore is a StoreInterface implementation using Zookeeper as store engine.
* ZookeeperStore is a PersistingStoreInterface implementation using Zookeeper as store engine.
*
* @author Ganesh Chandrasekaran <gchandrasekaran@wayfair.com>
*/

View File

@ -13,7 +13,7 @@ namespace Symfony\Component\Lock\Tests\Store;
use Symfony\Component\Lock\Exception\LockExpiredException;
use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
use Symfony\Component\Lock\PersistingStoreInterface;
/**
* @author Jérémy Derussé <jeremy@derusse.com>
@ -44,7 +44,7 @@ trait ExpiringStoreTestTrait
$key = new Key(uniqid(__METHOD__, true));
$clockDelay = $this->getClockDelay();
/** @var StoreInterface $store */
/** @var PersistingStoreInterface $store */
$store = $this->getStore();
$store->save($key);
@ -64,7 +64,7 @@ trait ExpiringStoreTestTrait
{
$key = new Key(uniqid(__METHOD__, true));
/** @var StoreInterface $store */
/** @var PersistingStoreInterface $store */
$store = $this->getStore();
$store->save($key);
@ -83,7 +83,7 @@ trait ExpiringStoreTestTrait
$key = new Key(uniqid(__METHOD__, true));
/** @var StoreInterface $store */
/** @var PersistingStoreInterface $store */
$store = $this->getStore();
$store->save($key);
@ -98,7 +98,7 @@ trait ExpiringStoreTestTrait
{
$key = new Key(uniqid(__METHOD__, true));
/** @var StoreInterface $store */
/** @var PersistingStoreInterface $store */
$store = $this->getStore();
$store->save($key);
@ -114,7 +114,7 @@ trait ExpiringStoreTestTrait
$key1 = new Key($resource);
$key2 = new Key($resource);
/** @var StoreInterface $store */
/** @var PersistingStoreInterface $store */
$store = $this->getStore();
$key1->reduceLifetime(0);