Skip to content

Commit 9a5c329

Browse files
committed
Use common param for $manager
1 parent 6d4a1d3 commit 9a5c329

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

docs/includes/apiargs-MongoDBDatabase-method-construct-param.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source:
2-
file: apiargs-MongoDBCollection-method-construct-param.yaml
2+
file: apiargs-common-param.yaml
33
ref: $manager
44
operation: MongoDB\\Database::__construct
55
position: 1
@@ -11,8 +11,8 @@ operation: MongoDB\\Database::__construct
1111
position: 2
1212
---
1313
source:
14-
ref: $options
1514
file: apiargs-common-param.yaml
16-
operation: MongoDB\\Database::__construct
15+
ref: $options
16+
operation: MongoDB\\Collection::__construct
1717
position: 3
1818
...

docs/includes/apiargs-common-param.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
arg_name: param
2+
name: $manager
3+
type: :php:`MongoDB\\Driver\\Manager <class.mongodb-driver-manager>`
4+
description: |
5+
The :php:`Manager <mongodb-driver-manager>` instance from the driver. The
6+
manager maintains connections between the driver and your MongoDB instances.
7+
interface: phpmethod
8+
operation: ~
9+
optional: false
10+
position: 1
11+
---
12+
arg_name: param
213
name: $databaseName
314
type: string
415
description: |

0 commit comments

Comments
 (0)