Fix namespace changes

This commit is contained in:
bethrezen 2014-06-16 14:36:01 +04:00
parent 595032786f
commit 49ab837591

View File

@ -7,7 +7,7 @@ use yii\di\Instance;
use triagens\ArangoDb\Document; use triagens\ArangoDb\Document;
use app;
class ArangoProvider extends yii\data\ActiveDataProvider class ArangoProvider extends yii\data\ActiveDataProvider
{ {
@ -23,7 +23,7 @@ class ArangoProvider extends yii\data\ActiveDataProvider
public function init() public function init()
{ {
parent::init(); parent::init();
$this->arango = Instance::ensure($this->arango, app\components\ArangoDbConnection::className()); $this->arango = Instance::ensure($this->arango, \devgroup\arangodb\ArangoDbConnection::className());
if ($this->collection === null) { if ($this->collection === null) {
throw new InvalidConfigException('The "collection" property must be set.'); throw new InvalidConfigException('The "collection" property must be set.');
} }