| @@ 52-59 (lines=8) @@ | ||
| 49 | /** |
|
| 50 | * {@inheritdoc} |
|
| 51 | */ |
|
| 52 | public function findOne($filter = [], array $options = []) |
|
| 53 | { |
|
| 54 | $event = $this->startQueryLogging($filter, __FUNCTION__); |
|
| 55 | $result = parent::findOne($filter, $options); |
|
| 56 | $this->logger->logQuery($event); |
|
| 57 | ||
| 58 | return $result; |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * {@inheritdoc} |
|
| @@ 80-87 (lines=8) @@ | ||
| 77 | /** |
|
| 78 | * {@inheritdoc} |
|
| 79 | */ |
|
| 80 | public function findOneAndDelete($filter, array $options = []) |
|
| 81 | { |
|
| 82 | $event = $this->startQueryLogging($filter, __FUNCTION__); |
|
| 83 | $result = parent::findOneAndDelete($filter, $options); |
|
| 84 | $this->logger->logQuery($event); |
|
| 85 | ||
| 86 | return $result; |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * {@inheritdoc} |
|
| @@ 92-99 (lines=8) @@ | ||
| 89 | /** |
|
| 90 | * {@inheritdoc} |
|
| 91 | */ |
|
| 92 | public function deleteMany($filter, array $options = []) |
|
| 93 | { |
|
| 94 | $event = $this->startQueryLogging($filter, __FUNCTION__); |
|
| 95 | $result = parent::deleteMany($filter, $options); |
|
| 96 | $this->logger->logQuery($event); |
|
| 97 | ||
| 98 | return $result; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * {@inheritdoc} |
|
| @@ 104-111 (lines=8) @@ | ||
| 101 | /** |
|
| 102 | * {@inheritdoc} |
|
| 103 | */ |
|
| 104 | public function deleteOne($filter, array $options = []) |
|
| 105 | { |
|
| 106 | $event = $this->startQueryLogging($filter, __FUNCTION__); |
|
| 107 | $result = parent::deleteOne($filter, $options); |
|
| 108 | $this->logger->logQuery($event); |
|
| 109 | ||
| 110 | return $result; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * {@inheritdoc} |
|
| @@ 132-139 (lines=8) @@ | ||
| 129 | /** |
|
| 130 | * {@inheritdoc} |
|
| 131 | */ |
|
| 132 | public function insertOne($document, array $options = []) |
|
| 133 | { |
|
| 134 | $event = $this->startQueryLogging($document, __FUNCTION__); |
|
| 135 | $result = parent::insertOne($document, $options); |
|
| 136 | $this->logger->logQuery($event); |
|
| 137 | ||
| 138 | return $result; |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * @param array $data |
|