From 6ccd02730c3be3d8904c080766152077c997a301 Mon Sep 17 00:00:00 2001 From: _alvian Date: Mon, 9 Oct 2017 13:07:02 +0700 Subject: [PATCH 1/4] fix import class in connection --- Connection.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Connection.php b/Connection.php index 8b4fb08..d779e5a 100644 --- a/Connection.php +++ b/Connection.php @@ -3,12 +3,13 @@ namespace explosivebit\arangodb; use Yii; -use triagens\ArangoDb\CollectionHandler; -use triagens\ArangoDb\ConnectionOptions; -use triagens\ArangoDb\Document; -use triagens\ArangoDb\DocumentHandler; -use triagens\ArangoDb\Statement; -use triagens\ArangoDb\UpdatePolicy; +use ArangoDBClient\CollectionHandler; +use ArangoDBClient\ConnectionOptions; +use ArangoDBClient\Document; +use ArangoDBClient\DocumentHandler; +use ArangoDBClient\Statement; +use ArangoDBClient\UpdatePolicy; + use yii\base\Object; @@ -51,7 +52,7 @@ class Connection extends Object try { Yii::info($token, 'explosivebit\arangodb\Connection::open'); Yii::beginProfile($token, 'explosivebit\arangodb\Connection::open'); - $this->connection = new \triagens\ArangoDb\Connection($this->connectionOptions); + $this->connection = new \ArangoDBClient\Connection($this->connectionOptions); $this->collectionHandler = new CollectionHandler($this->connection); $this->documentHandler = new DocumentHandler($this->connection); Yii::endProfile($token, 'explosivebit\arangodb\Connection::open'); From 7d44b5fa7b34a7d8e3c86589edd8f5980d6f3c2d Mon Sep 17 00:00:00 2001 From: _alvian Date: Mon, 9 Oct 2017 13:07:27 +0700 Subject: [PATCH 2/4] git fix class using in Query --- Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Query.php b/Query.php index eb6838e..4d449a4 100644 --- a/Query.php +++ b/Query.php @@ -3,8 +3,8 @@ namespace explosivebit\arangodb; use Yii; -use triagens\ArangoDb\Document; -use triagens\ArangoDb\Statement; +use ArangoDBClient\Document; +use ArangoDBClient\Statement; use yii\base\Component; use yii\base\InvalidParamException; use yii\base\NotSupportedException; From 24ff4cd6971e97107e5943ec1851c612b4ab84a5 Mon Sep 17 00:00:00 2001 From: _alvian Date: Mon, 9 Oct 2017 13:07:44 +0700 Subject: [PATCH 3/4] git fix name and dependencies --- composer.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 0e4c6bd..125d578 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "explosivebit/yii2-arangodb", + "name": "akupeduli/yii2-arangodb", "description": "Yii2 arangodb components", "type": "yii2-extension", "keywords": ["yii2","arangodb"], @@ -8,12 +8,16 @@ { "name": "Ilya Rumyantsev", "email": "explosivebit@gmail.com" + }, + { + "name": "Alvian Burhanuddin", + "email": "alvianthelfarqy@gmail.com" } ], "minimum-stability": "dev", "require": { "yiisoft/yii2": "*", - "triagens/arangodb": "*" + "triagens/arangodb": "~3.2" }, "require-dev": { "yiisoft/yii2-debug": "*" @@ -23,4 +27,4 @@ "explosivebit\\arangodb\\": "" } } -} \ No newline at end of file +} From addcb6ee18f146eef28711cf16dc368530b87a49 Mon Sep 17 00:00:00 2001 From: _alvian Date: Mon, 9 Oct 2017 13:12:10 +0700 Subject: [PATCH 4/4] fix config in main --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 35399b8..056983c 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,11 @@ return [ 'arangodb' => [ 'class' => '\explosivebit\arangodb\Connection', 'connectionOptions' => [ - triagens\ArangoDb\ConnectionOptions::OPTION_DATABASE => "mydatabase", - triagens\ArangoDb\ConnectionOptions::OPTION_ENDPOINT => 'tcp://127.0.0.1:8529', - triagens\ArangoDb\ConnectionOptions::OPTION_AUTH_TYPE => 'Basic', - //triagens\ArangoDb\ConnectionOptions::OPTION_AUTH_USER => '', - //triagens\ArangoDb\ConnectionOptions::OPTION_AUTH_PASSWD => '', + ArangoDBClient\ConnectionOptions::OPTION_DATABASE => "mydatabase", + ArangoDBClient\ConnectionOptions::OPTION_ENDPOINT => 'tcp://127.0.0.1:8529', + ArangoDBClient\ConnectionOptions::OPTION_AUTH_TYPE => 'Basic', + //ArangoDBClient\ConnectionOptions::OPTION_AUTH_USER => '', + //ArangoDBClient\ConnectionOptions::OPTION_AUTH_PASSWD => '', ], ], ],