del ADbConn

This commit is contained in:
evgen-d 2014-10-23 10:30:33 +04:00
parent 8da9cde5b4
commit 1f23259b58
2 changed files with 1 additions and 20 deletions

View File

@ -1,19 +0,0 @@
<?php
namespace devgroup\arangodb;
use \triagens\ArangoDb\ConnectionOptions;
class ArangoDbConnection extends \triagens\ArangoDb\Connection
{
public function json_encode_wrapper($data, $options = null)
{
if ($this->getOption(ConnectionOptions::OPTION_CHECK_UTF8_CONFORM) === true) {
self::check_encoding($data);
}
$response = json_encode($data, $options | JSON_FORCE_OBJECT);
return $response;
}
}

View File

@ -51,7 +51,7 @@ class Connection extends Object
try {
Yii::info($token, 'devgroup\arangodb\Connection::open');
Yii::beginProfile($token, 'devgroup\arangodb\Connection::open');
$this->connection = new ArangoDbConnection($this->connectionOptions);
$this->connection = new \triagens\ArangoDb\Connection($this->connectionOptions);
$this->collectionHandler = new CollectionHandler($this->connection);
$this->documentHandler = new DocumentHandler($this->connection);
Yii::endProfile($token, 'devgroup\arangodb\Connection::open');