File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
src/Symfony/Component/Lock/Store Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 19
19
use MongoDB \Exception \DriverRuntimeException ;
20
20
use MongoDB \Exception \InvalidArgumentException as MongoInvalidArgumentException ;
21
21
use MongoDB \Exception \UnsupportedException ;
22
- use Symfony \Component \Lock \BlockingStoreInterface ;
23
22
use Symfony \Component \Lock \Exception \InvalidArgumentException ;
24
23
use Symfony \Component \Lock \Exception \InvalidTtlException ;
25
24
use Symfony \Component \Lock \Exception \LockAcquiringException ;
26
25
use Symfony \Component \Lock \Exception \LockConflictedException ;
27
26
use Symfony \Component \Lock \Exception \LockExpiredException ;
28
27
use Symfony \Component \Lock \Exception \LockStorageException ;
29
- use Symfony \Component \Lock \Exception \NotSupportedException ;
30
28
use Symfony \Component \Lock \Key ;
29
+ use Symfony \Component \Lock \PersistingStoreInterface ;
31
30
32
31
/**
33
32
* MongoDbStore is a StoreInterface implementation using MongoDB as a storage
46
45
*
47
46
* @author Joe Bennett <joe@assimtech.com>
48
47
*/
49
- class MongoDbStore implements BlockingStoreInterface
48
+ class MongoDbStore implements PersistingStoreInterface
50
49
{
51
50
private $ collection ;
52
51
private $ client ;
@@ -208,14 +207,6 @@ public function save(Key $key)
208
207
$ this ->checkNotExpired ($ key );
209
208
}
210
209
211
- /**
212
- * {@inheritdoc}
213
- */
214
- public function waitAndSave (Key $ key )
215
- {
216
- throw new NotSupportedException (sprintf ('The store "%s" does not support blocking locks. ' , __CLASS__ ));
217
- }
218
-
219
210
/**
220
211
* {@inheritdoc}
221
212
*
You can’t perform that action at this time.
0 commit comments