consistently throw NotSupportException

This commit is contained in:
Christian Flothmann 2019-08-08 08:47:22 +02:00
parent 48859fd125
commit 12b8c942eb
3 changed files with 5 additions and 3 deletions

View File

@ -94,7 +94,7 @@ class CombinedStore implements StoreInterface, LoggerAwareInterface
public function waitAndSave(Key $key)
{
throw new NotSupportedException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
}
/**

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Lock\Store;
use Symfony\Component\Lock\Exception\InvalidArgumentException;
use Symfony\Component\Lock\Exception\LockConflictedException;
use Symfony\Component\Lock\Exception\NotSupportedException;
use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
@ -70,7 +71,7 @@ class MemcachedStore implements StoreInterface
public function waitAndSave(Key $key)
{
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
}
/**

View File

@ -14,6 +14,7 @@ namespace Symfony\Component\Lock\Store;
use Symfony\Component\Cache\Traits\RedisProxy;
use Symfony\Component\Lock\Exception\InvalidArgumentException;
use Symfony\Component\Lock\Exception\LockConflictedException;
use Symfony\Component\Lock\Exception\NotSupportedException;
use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\StoreInterface;
@ -72,7 +73,7 @@ class RedisStore implements StoreInterface
public function waitAndSave(Key $key)
{
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
}
/**