Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0776b3a

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 parents83dc835 +fa18765 commit0776b3a

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
usePsr\Log\NullLogger;
1717
useSymfony\Component\Lock\Exception\InvalidArgumentException;
1818
useSymfony\Component\Lock\Exception\LockConflictedException;
19-
useSymfony\Component\Lock\Exception\NotSupportedException;
2019
useSymfony\Component\Lock\Key;
2120
useSymfony\Component\Lock\PersistingStoreInterface;
2221
useSymfony\Component\Lock\Strategy\StrategyInterface;
@@ -92,17 +91,6 @@ public function save(Key $key)
9291
thrownewLockConflictedException();
9392
}
9493

95-
/**
96-
* {@inheritdoc}
97-
*
98-
* @deprecated since Symfony 4.4.
99-
*/
100-
publicfunctionwaitAndSave(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-
thrownewNotSupportedException(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-
publicfunctionwaitAndSave(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-
thrownewInvalidArgumentException(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-
publicfunctionwaitAndSave(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-
thrownewInvalidArgumentException(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
useSymfony\Component\Lock\Exception\LockAcquiringException;
1515
useSymfony\Component\Lock\Exception\LockConflictedException;
1616
useSymfony\Component\Lock\Exception\LockReleasingException;
17-
useSymfony\Component\Lock\Exception\NotSupportedException;
1817
useSymfony\Component\Lock\Key;
1918
useSymfony\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-
publicfunctionwaitAndSave(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-
thrownewNotSupportedException();
94-
}
95-
9684
/**
9785
* {@inheritdoc}
9886
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp