From 9c704db451057887936ebd1ee4ad3e1298558b3f Mon Sep 17 00:00:00 2001 From: _alvian Date: Mon, 9 Oct 2017 11:19:40 +0700 Subject: [PATCH] fixing connection use --- Connection.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Connection.php b/Connection.php index 4ce3d20..d779e5a 100644 --- a/Connection.php +++ b/Connection.php @@ -3,13 +3,13 @@ namespace explosivebit\arangodb; use Yii; -use triagens\ArangoDb\CollectionHandler; -//use triagens\ArangoDb\ConnectionOptions; +use ArangoDBClient\CollectionHandler; use ArangoDBClient\ConnectionOptions; -use triagens\ArangoDb\Document; -use triagens\ArangoDb\DocumentHandler; -use triagens\ArangoDb\Statement; -use triagens\ArangoDb\UpdatePolicy; +use ArangoDBClient\Document; +use ArangoDBClient\DocumentHandler; +use ArangoDBClient\Statement; +use ArangoDBClient\UpdatePolicy; + use yii\base\Object; @@ -53,8 +53,8 @@ class Connection extends Object Yii::info($token, 'explosivebit\arangodb\Connection::open'); Yii::beginProfile($token, 'explosivebit\arangodb\Connection::open'); $this->connection = new \ArangoDBClient\Connection($this->connectionOptions); - $this->collectionHandler = new \ArangoDBClient\CollectionHandler($this->connection); - $this->documentHandler = new \ArangoDBClient\DocumentHandler($this->connection); + $this->collectionHandler = new CollectionHandler($this->connection); + $this->documentHandler = new DocumentHandler($this->connection); Yii::endProfile($token, 'explosivebit\arangodb\Connection::open'); } catch (\Exception $ex) { Yii::endProfile($token, 'explosivebit\arangodb\Connection::open'); @@ -103,6 +103,6 @@ class Connection extends Object */ public function getStatement($options = []) { - return new \ArangoDBClient\Statement($this->connection, $options); + return new Statement($this->connection, $options); } }