minor #33029 [Lock] remove deprecated waitAndSave() methods (xabbuh)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[Lock] remove deprecated waitAndSave() methods

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | missed in #32555
| License       | MIT
| Doc PR        |

Commits
-------

fa18765233 remove deprecated waitAndSave() methods
This commit is contained in:
Nicolas Grekas 2019-08-08 09:56:27 +02:00
commit 0776b3a40f
5 changed files with 1 additions and 46 deletions

View File

@ -6,6 +6,7 @@ CHANGELOG
* `Factory` has been removed, use `LockFactory` instead.
* `StoreInterface` has been removed, use `BlockingStoreInterface` and `PersistingStoreInterface` instead.
* removed the `waitAndSave()` method from `CombinedStore`, `MemcachedStore`, `RedisStore`, and `ZookeeperStore`
4.4.0
-----

View File

@ -16,7 +16,6 @@ use Psr\Log\LoggerAwareTrait;
use Psr\Log\NullLogger;
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\PersistingStoreInterface;
use Symfony\Component\Lock\Strategy\StrategyInterface;
@ -92,17 +91,6 @@ class CombinedStore implements PersistingStoreInterface, LoggerAwareInterface
throw new LockConflictedException();
}
/**
* {@inheritdoc}
*
* @deprecated since Symfony 4.4.
*/
public function waitAndSave(Key $key)
{
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
throw new NotSupportedException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
}
/**
* {@inheritdoc}
*/

View File

@ -69,17 +69,6 @@ class MemcachedStore implements PersistingStoreInterface
$this->checkNotExpired($key);
}
/**
* {@inheritdoc}
*
* @deprecated since Symfony 4.4.
*/
public function waitAndSave(Key $key)
{
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
}
/**
* {@inheritdoc}
*/

View File

@ -72,17 +72,6 @@ class RedisStore implements PersistingStoreInterface
$this->checkNotExpired($key);
}
/**
* {@inheritdoc}
*
* @deprecated since Symfony 4.4.
*/
public function waitAndSave(Key $key)
{
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
}
/**
* {@inheritdoc}
*/

View File

@ -14,7 +14,6 @@ namespace Symfony\Component\Lock\Store;
use Symfony\Component\Lock\Exception\LockAcquiringException;
use Symfony\Component\Lock\Exception\LockConflictedException;
use Symfony\Component\Lock\Exception\LockReleasingException;
use Symfony\Component\Lock\Exception\NotSupportedException;
use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\PersistingStoreInterface;
@ -82,17 +81,6 @@ class ZookeeperStore implements PersistingStoreInterface
}
}
/**
* {@inheritdoc}
*
* @deprecated since Symfony 4.4.
*/
public function waitAndSave(Key $key)
{
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
throw new NotSupportedException();
}
/**
* {@inheritdoc}
*/