| @@ 40-47 (lines=8) @@ | ||
| 37 | /** |
|
| 38 | * {@inheritdoc} |
|
| 39 | */ |
|
| 40 | public function count($filter = [], array $options = []) |
|
| 41 | { |
|
| 42 | $event = $this->startQueryLogging(__FUNCTION__, $filter, null, $options); |
|
| 43 | $result = parent::count($filter, $options); |
|
| 44 | $this->logger->logQuery($event); |
|
| 45 | ||
| 46 | return $result; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * {@inheritdoc} |
|
| @@ 52-59 (lines=8) @@ | ||
| 49 | /** |
|
| 50 | * {@inheritdoc} |
|
| 51 | */ |
|
| 52 | public function find($filter = [], array $options = []) |
|
| 53 | { |
|
| 54 | $event = $this->startQueryLogging(__FUNCTION__, $filter, null, $options); |
|
| 55 | $result = parent::find($filter, $options); |
|
| 56 | $this->logger->logQuery($event); |
|
| 57 | ||
| 58 | return $result; |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * {@inheritdoc} |
|
| @@ 64-71 (lines=8) @@ | ||
| 61 | /** |
|
| 62 | * {@inheritdoc} |
|
| 63 | */ |
|
| 64 | public function findOne($filter = [], array $options = []) |
|
| 65 | { |
|
| 66 | $event = $this->startQueryLogging(__FUNCTION__, $filter, null, $options); |
|
| 67 | $result = parent::findOne($filter, $options); |
|
| 68 | $this->logger->logQuery($event); |
|
| 69 | ||
| 70 | return $result; |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * {@inheritdoc} |
|
| @@ 76-83 (lines=8) @@ | ||
| 73 | /** |
|
| 74 | * {@inheritdoc} |
|
| 75 | */ |
|
| 76 | public function findOneAndUpdate($filter, $update, array $options = []) |
|
| 77 | { |
|
| 78 | $event = $this->startQueryLogging(__FUNCTION__, $filter, $update, $options); |
|
| 79 | $result = parent::findOneAndUpdate($filter, $update, $options); |
|
| 80 | $this->logger->logQuery($event); |
|
| 81 | ||
| 82 | return $result; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * {@inheritdoc} |
|
| @@ 88-95 (lines=8) @@ | ||
| 85 | /** |
|
| 86 | * {@inheritdoc} |
|
| 87 | */ |
|
| 88 | public function findOneAndDelete($filter, array $options = []) |
|
| 89 | { |
|
| 90 | $event = $this->startQueryLogging(__FUNCTION__, $filter, null, $options); |
|
| 91 | $result = parent::findOneAndDelete($filter, $options); |
|
| 92 | $this->logger->logQuery($event); |
|
| 93 | ||
| 94 | return $result; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * {@inheritdoc} |
|
| @@ 100-107 (lines=8) @@ | ||
| 97 | /** |
|
| 98 | * {@inheritdoc} |
|
| 99 | */ |
|
| 100 | public function deleteMany($filter, array $options = []) |
|
| 101 | { |
|
| 102 | $event = $this->startQueryLogging(__FUNCTION__, $filter, null, $options); |
|
| 103 | $result = parent::deleteMany($filter, $options); |
|
| 104 | $this->logger->logQuery($event); |
|
| 105 | ||
| 106 | return $result; |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * {@inheritdoc} |
|
| @@ 112-119 (lines=8) @@ | ||
| 109 | /** |
|
| 110 | * {@inheritdoc} |
|
| 111 | */ |
|
| 112 | public function deleteOne($filter, array $options = []) |
|
| 113 | { |
|
| 114 | $event = $this->startQueryLogging(__FUNCTION__, $filter, null, $options); |
|
| 115 | $result = parent::deleteOne($filter, $options); |
|
| 116 | $this->logger->logQuery($event); |
|
| 117 | ||
| 118 | return $result; |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * {@inheritdoc} |
|
| @@ 124-131 (lines=8) @@ | ||
| 121 | /** |
|
| 122 | * {@inheritdoc} |
|
| 123 | */ |
|
| 124 | public function replaceOne($filter, $replacement, array $options = []) |
|
| 125 | { |
|
| 126 | $event = $this->startQueryLogging(__FUNCTION__, $filter, $replacement, $options); |
|
| 127 | $result = parent::replaceOne($filter, $replacement, $options); |
|
| 128 | $this->logger->logQuery($event); |
|
| 129 | ||
| 130 | return $result; |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * {@inheritdoc} |
|
| @@ 136-143 (lines=8) @@ | ||
| 133 | /** |
|
| 134 | * {@inheritdoc} |
|
| 135 | */ |
|
| 136 | public function insertOne($document, array $options = []) |
|
| 137 | { |
|
| 138 | $event = $this->startQueryLogging(__FUNCTION__, [], $document, $options); |
|
| 139 | $result = parent::insertOne($document, $options); |
|
| 140 | $this->logger->logQuery($event); |
|
| 141 | ||
| 142 | return $result; |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * @param string $method |
|