diff --git a/backend/config/main.php b/backend/config/main.php index 06c78e6..c4ed214 100644 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -12,6 +12,9 @@ 'basePath' => dirname(__DIR__), 'controllerNamespace' => 'backend\controllers', 'bootstrap' => [ 'log' ], + 'controllerMap' => [ + 'settings' => 'artweb\artbox\core\controllers\SettingsController', + ], 'modules' => [ 'imagemanager' => [ 'class' => 'noam148\imagemanager\Module', @@ -39,6 +42,10 @@ ], ], ], + 'filedb' => [ + 'class' => 'yii2tech\filedb\Connection', + 'path' => '@common/config', + ], 'imagemanager' => [ 'class' => 'noam148\imagemanager\components\ImageManagerGetPath', 'mediaPath' => dirname(dirname(__DIR__)) . '/storage', diff --git a/composer.json b/composer.json index c24bfed..84a130c 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,8 @@ "insolita/yii2-migration-generator": "~2.2", "yiister/yii2-gentelella": "~1.0", "hiqdev/yii2-asset-icheck": "1.0.2.5", - "noam148/yii2-image-manager": "*" + "noam148/yii2-image-manager": "*", + "yii2tech/filedb": "^1.0" }, "require-dev": { "yiisoft/yii2-debug": "~2.0.0", @@ -42,5 +43,10 @@ }, "scripts": { "post-install-cmd": "php init --env=Development --overwrite=n" + }, + "autoload": { + "psr-4": { + "artweb\\artbox\\core\\": "artweb/artbox-core/" + } } } diff --git a/composer.lock b/composer.lock index a8a9df5..48ff691 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "ccf577a6826f86b5814556c1ea21a85f", - "content-hash": "685ccd30ba9a1c6c4687729314641cdf", + "hash": "273c41f822738cb68bec5cafba6f54f5", + "content-hash": "c2ffd5778bd51c266dfd00c514847f0a", "packages": [ { "name": "bower-asset/bootstrap", @@ -1037,6 +1037,54 @@ "time": "2017-02-13 07:52:53" }, { + "name": "yii2tech/filedb", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/yii2tech/filedb.git", + "reference": "29af3a707fa2070b73b268e847b264f29c7dff31" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/yii2tech/filedb/zipball/29af3a707fa2070b73b268e847b264f29c7dff31", + "reference": "29af3a707fa2070b73b268e847b264f29c7dff31", + "shasum": "" + }, + "require": { + "yiisoft/yii2": "*" + }, + "type": "yii2-extension", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "yii2tech\\filedb\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Paul Klimov", + "email": "klimov.paul@gmail.com" + } + ], + "description": "Provides ActiveRecord interface for data declared in static files", + "keywords": [ + "active", + "filedb", + "record", + "static", + "yii2" + ], + "time": "2017-02-06 10:58:30" + }, + { "name": "yiisoft/yii2", "version": "2.0.11.2", "source": { -- libgit2 0.21.4