Skip to content

Commit 0776b3a

Browse files
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 ------- fa18765 remove deprecated waitAndSave() methods
2 parents 83dc835 + fa18765 commit 0776b3a

File tree

5 files changed

+1
-46
lines changed

5 files changed

+1
-46
lines changed

src/Symfony/Component/Lock/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
* `Factory` has been removed, use `LockFactory` instead.
88
* `StoreInterface` has been removed, use `BlockingStoreInterface` and `PersistingStoreInterface` instead.
9+
* removed the `waitAndSave()` method from `CombinedStore`, `MemcachedStore`, `RedisStore`, and `ZookeeperStore`
910

1011
4.4.0
1112
-----

src/Symfony/Component/Lock/Store/CombinedStore.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Psr\Log\NullLogger;
1717
use Symfony\Component\Lock\Exception\InvalidArgumentException;
1818
use Symfony\Component\Lock\Exception\LockConflictedException;
19-
use Symfony\Component\Lock\Exception\NotSupportedException;
2019
use Symfony\Component\Lock\Key;
2120
use Symfony\Component\Lock\PersistingStoreInterface;
2221
use Symfony\Component\Lock\Strategy\StrategyInterface;
@@ -92,17 +91,6 @@ public function save(Key $key)
9291
throw new LockConflictedException();
9392
}
9493

95-
/**
96-
* {@inheritdoc}
97-
*
98-
* @deprecated since Symfony 4.4.
99-
*/
100-
public function waitAndSave(Key $key)
101-
{
102-
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
103-
throw new NotSupportedException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
104-
}
105-
10694
/**
10795
* {@inheritdoc}
10896
*/

src/Symfony/Component/Lock/Store/MemcachedStore.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@ public function save(Key $key)
6969
$this->checkNotExpired($key);
7070
}
7171

72-
/**
73-
* {@inheritdoc}
74-
*
75-
* @deprecated since Symfony 4.4.
76-
*/
77-
public function waitAndSave(Key $key)
78-
{
79-
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
80-
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
81-
}
82-
8372
/**
8473
* {@inheritdoc}
8574
*/

src/Symfony/Component/Lock/Store/RedisStore.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,6 @@ public function save(Key $key)
7272
$this->checkNotExpired($key);
7373
}
7474

75-
/**
76-
* {@inheritdoc}
77-
*
78-
* @deprecated since Symfony 4.4.
79-
*/
80-
public function waitAndSave(Key $key)
81-
{
82-
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
83-
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
84-
}
85-
8675
/**
8776
* {@inheritdoc}
8877
*/

src/Symfony/Component/Lock/Store/ZookeeperStore.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Lock\Exception\LockAcquiringException;
1515
use Symfony\Component\Lock\Exception\LockConflictedException;
1616
use Symfony\Component\Lock\Exception\LockReleasingException;
17-
use Symfony\Component\Lock\Exception\NotSupportedException;
1817
use Symfony\Component\Lock\Key;
1918
use Symfony\Component\Lock\PersistingStoreInterface;
2019

@@ -82,17 +81,6 @@ public function exists(Key $key): bool
8281
}
8382
}
8483

85-
/**
86-
* {@inheritdoc}
87-
*
88-
* @deprecated since Symfony 4.4.
89-
*/
90-
public function waitAndSave(Key $key)
91-
{
92-
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
93-
throw new NotSupportedException();
94-
}
95-
9684
/**
9785
* {@inheritdoc}
9886
*/

0 commit comments

Comments
 (0)