Open pixelpeter opened 7 years ago
With version 2.3.x of the php extension, the API of the PHP SDK has changed and only one parameter is allowed when constructing a CouchbaseCluster.
CouchbaseCluster
Documentation for 2.2.3 http://docs.couchbase.com/sdk-api/couchbase-php-client-2.2.3/classes/CouchbaseCluster.html
Documentation for 2.3.3 http://docs.couchbase.com/sdk-api/couchbase-php-client-2.3.3/classes/Couchbase.Cluster.html
The fix is simple in Ytake\LaravelCouchbase\Database\CouchbaseConnector
Ytake\LaravelCouchbase\Database\CouchbaseConnector
OLD:
public function connect(array $servers) { $configure = array_merge($this->configure, $servers); return new CouchbaseCluster( $configure['host'], $configure['user'], $configure['password'] ); }
NEW:
public function connect(array $servers) { $configure = array_merge($this->configure, $servers); return new CouchbaseCluster( $configure['host'] ); }
If this change is OK for you I can also provide it as a pull request
still a work in progress (for laravel5.5) https://github.com/ytake/Laravel-Couchbase/blob/feature/laravel-55/src/Database/CouchbaseConnector.php#L36
https://github.com/ytake/Laravel-Couchbase/releases/tag/1.0.0
With version 2.3.x of the php extension, the API of the PHP SDK has changed and only one parameter is allowed when constructing a
CouchbaseCluster
.Documentation for 2.2.3 http://docs.couchbase.com/sdk-api/couchbase-php-client-2.2.3/classes/CouchbaseCluster.html
Documentation for 2.3.3 http://docs.couchbase.com/sdk-api/couchbase-php-client-2.3.3/classes/Couchbase.Cluster.html
The fix is simple in
Ytake\LaravelCouchbase\Database\CouchbaseConnector
OLD:
NEW:
If this change is OK for you I can also provide it as a pull request