Namespaces from driver, not set

Better call absolute namespace

triagens\ArangoDb\ConnectionOptions

and add OPTION_AUTH_USER , OPTION_AUTH_PASSWD for authorization database
This commit is contained in:
MarcioCamello 2014-11-17 21:56:52 -03:00
parent aa4b83ee58
commit 69f3cae54a

View File

@ -38,8 +38,10 @@ return [
'arangodb' => [ 'arangodb' => [
'class' => '\devgroup\arangodb\Connection', 'class' => '\devgroup\arangodb\Connection',
'connectionOptions' => [ 'connectionOptions' => [
ArangoConnectionOptions::OPTION_DATABASE => "mydatabase", triagens\ArangoDb\ConnectionOptions::OPTION_DATABASE => "mydatabase",
ArangoConnectionOptions::OPTION_ENDPOINT => 'tcp://127.0.0.1:8529', triagens\ArangoDb\ConnectionOptions::OPTION_ENDPOINT => 'tcp://127.0.0.1:8529',
//triagens\ArangoDb\ConnectionOptions::OPTION_AUTH_USER => '',
//triagens\ArangoDb\ConnectionOptions::OPTION_AUTH_PASSWD => '',
], ],
], ],
], ],