Skip to content

Commit b609491

Browse files
author
Petr Buchyn
committed
Removed method Collection::setBulkWriteListener()
1 parent 5288ba7 commit b609491

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Collection.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ class Collection
4848
*/
4949
private $collectionName;
5050

51-
/**
52-
* @var BulkWriteListenerInterface
53-
*/
54-
private $bulkWriteListener;
55-
5651
/**
5752
* @param Manager $manager
5853
* @param string $databaseName
@@ -115,9 +110,6 @@ public function bulkWrite($requests, array $options = [])
115110
}
116111

117112
$bulkWrite = new BulkWrite($requests, $options);
118-
if (null !== $this->bulkWriteListener) {
119-
$bulkWrite->setListener($this->bulkWriteListener);
120-
}
121113

122114
return $this->manager->executeBulkWrite($this->getNamespace(), $bulkWrite, $writeConcern);
123115
}
@@ -491,17 +483,6 @@ public function replaceOne(array $filter, $replacement, array $options = [])
491483
return new UpdateResult($bulkWriteResult);
492484
}
493485

494-
/**
495-
* Sets the listener for BulkWrite methods insert(), update() and delete().
496-
* This can be used for example to log all writes or intercept them.
497-
*
498-
* @param BulkWriteListenerInterface $listener
499-
*/
500-
public function setBulkWriteListener(BulkWriteListenerInterface $listener)
501-
{
502-
$this->bulkWriteListener = $listener;
503-
}
504-
505486
/**
506487
* @param array $filter
507488
* @param array|object $update

0 commit comments

Comments
 (0)