del ADbConn
This commit is contained in:
parent
8da9cde5b4
commit
1f23259b58
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -51,7 +51,7 @@ class Connection extends Object
|
||||||
try {
|
try {
|
||||||
Yii::info($token, 'devgroup\arangodb\Connection::open');
|
Yii::info($token, 'devgroup\arangodb\Connection::open');
|
||||||
Yii::beginProfile($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->collectionHandler = new CollectionHandler($this->connection);
|
||||||
$this->documentHandler = new DocumentHandler($this->connection);
|
$this->documentHandler = new DocumentHandler($this->connection);
|
||||||
Yii::endProfile($token, 'devgroup\arangodb\Connection::open');
|
Yii::endProfile($token, 'devgroup\arangodb\Connection::open');
|
||||||
|
|
Loading…
Reference in New Issue