Skip to content

Commit af6f678

Browse files
committed
Merge pull request mongodb#288
2 parents 818e450 + dacec1a commit af6f678

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ env:
1313
- MONGO_REPO_TYPE="precise/mongodb-enterprise/"
1414
- SOURCES_LOC="/etc/apt/sources.list.d/mongodb.list"
1515
matrix:
16-
- DRIVER_VERSION=1.2.0alpha3 SERVER_VERSION=2.6
17-
- DRIVER_VERSION=1.2.0alpha3 SERVER_VERSION=3.0
18-
- DRIVER_VERSION=1.2.0alpha3 SERVER_VERSION=3.2
16+
- DRIVER_VERSION=1.2.0 SERVER_VERSION=2.6
17+
- DRIVER_VERSION=1.2.0 SERVER_VERSION=3.0
18+
- DRIVER_VERSION=1.2.0 SERVER_VERSION=3.2
1919

2020
matrix:
2121
fast_finish: true
2222
include:
2323
- php: 7.0
24-
env: DRIVER_VERSION=1.2.0alpha3 SERVER_VERSION=2.4
24+
env: DRIVER_VERSION=1.2.0 SERVER_VERSION=2.4
2525
- php: 7.0
2626
env: DRIVER_VERSION=devel SERVER_VERSION=3.2
2727
exclude:

src/Client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Client
2525
private $manager;
2626
private $uri;
2727
private $typeMap;
28+
private $writeConcern;
2829

2930
/**
3031
* Constructs a new Client instance.
@@ -63,6 +64,7 @@ public function __construct($uri = 'mongodb://127.0.0.1/', array $uriOptions = [
6364
unset($driverOptions['typeMap']);
6465

6566
$this->manager = new Manager($uri, $uriOptions, $driverOptions);
67+
$this->writeConcern = $this->manager->getWriteConcern();
6668
}
6769

6870
/**
@@ -77,6 +79,7 @@ public function __debugInfo()
7779
'manager' => $this->manager,
7880
'uri' => $this->uri,
7981
'typeMap' => $this->typeMap,
82+
'writeConcern' => $this->writeConcern,
8083
];
8184
}
8285

0 commit comments

Comments
 (0)