Commit 90155d99 authored by Jeremy Mikola's avatar Jeremy Mikola

Keep optional selectGridFSBucket() bucketName in options array

As a rule of thumb, we've decided keep all optional parameters in an options array across the library's public API.
parent 0bb64620
......@@ -267,14 +267,12 @@ class Database
* Select a GridFS bucket within this database.
*
* @see Bucket::__construct() for supported options
* @param string $bucketName Name of the bucket to select (defaults to 'fs')
* @param array $options Bucket constructor options
* @param array $options Bucket constructor options
* @return Bucket
*/
public function selectGridFSBucket($bucketName = 'fs', array $options = [])
public function selectGridFSBucket(array $options = [])
{
$options += [
'bucketName' => $bucketName,
'readConcern' => $this->readConcern,
'readPreference' => $this->readPreference,
'writeConcern' => $this->writeConcern,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment