Commit 8ea2bb09d7d9882468604fca921c3fd789f8ace6

Authored by Alexey Boroda
1 parent 219af3d1

-Settings started

Showing 3 changed files with 64 additions and 3 deletions   Show diff stats
backend/config/main.php
@@ -12,6 +12,9 @@ @@ -12,6 +12,9 @@
12 'basePath' => dirname(__DIR__), 12 'basePath' => dirname(__DIR__),
13 'controllerNamespace' => 'backend\controllers', 13 'controllerNamespace' => 'backend\controllers',
14 'bootstrap' => [ 'log' ], 14 'bootstrap' => [ 'log' ],
  15 + 'controllerMap' => [
  16 + 'settings' => 'artweb\artbox\core\controllers\SettingsController',
  17 + ],
15 'modules' => [ 18 'modules' => [
16 'imagemanager' => [ 19 'imagemanager' => [
17 'class' => 'noam148\imagemanager\Module', 20 'class' => 'noam148\imagemanager\Module',
@@ -39,6 +42,10 @@ @@ -39,6 +42,10 @@
39 ], 42 ],
40 ], 43 ],
41 ], 44 ],
  45 + 'filedb' => [
  46 + 'class' => 'yii2tech\filedb\Connection',
  47 + 'path' => '@common/config',
  48 + ],
42 'imagemanager' => [ 49 'imagemanager' => [
43 'class' => 'noam148\imagemanager\components\ImageManagerGetPath', 50 'class' => 'noam148\imagemanager\components\ImageManagerGetPath',
44 'mediaPath' => dirname(dirname(__DIR__)) . '/storage', 51 'mediaPath' => dirname(dirname(__DIR__)) . '/storage',
@@ -21,7 +21,8 @@ @@ -21,7 +21,8 @@
21 "insolita/yii2-migration-generator": "~2.2", 21 "insolita/yii2-migration-generator": "~2.2",
22 "yiister/yii2-gentelella": "~1.0", 22 "yiister/yii2-gentelella": "~1.0",
23 "hiqdev/yii2-asset-icheck": "1.0.2.5", 23 "hiqdev/yii2-asset-icheck": "1.0.2.5",
24 - "noam148/yii2-image-manager": "*" 24 + "noam148/yii2-image-manager": "*",
  25 + "yii2tech/filedb": "^1.0"
25 }, 26 },
26 "require-dev": { 27 "require-dev": {
27 "yiisoft/yii2-debug": "~2.0.0", 28 "yiisoft/yii2-debug": "~2.0.0",
@@ -42,5 +43,10 @@ @@ -42,5 +43,10 @@
42 }, 43 },
43 "scripts": { 44 "scripts": {
44 "post-install-cmd": "php init --env=Development --overwrite=n" 45 "post-install-cmd": "php init --env=Development --overwrite=n"
  46 + },
  47 + "autoload": {
  48 + "psr-4": {
  49 + "artweb\\artbox\\core\\": "artweb/artbox-core/"
  50 + }
45 } 51 }
46 } 52 }
@@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5 "This file is @generated automatically" 5 "This file is @generated automatically"
6 ], 6 ],
7 - "hash": "ccf577a6826f86b5814556c1ea21a85f",  
8 - "content-hash": "685ccd30ba9a1c6c4687729314641cdf", 7 + "hash": "273c41f822738cb68bec5cafba6f54f5",
  8 + "content-hash": "c2ffd5778bd51c266dfd00c514847f0a",
9 "packages": [ 9 "packages": [
10 { 10 {
11 "name": "bower-asset/bootstrap", 11 "name": "bower-asset/bootstrap",
@@ -1037,6 +1037,54 @@ @@ -1037,6 +1037,54 @@
1037 "time": "2017-02-13 07:52:53" 1037 "time": "2017-02-13 07:52:53"
1038 }, 1038 },
1039 { 1039 {
  1040 + "name": "yii2tech/filedb",
  1041 + "version": "1.0.3",
  1042 + "source": {
  1043 + "type": "git",
  1044 + "url": "https://github.com/yii2tech/filedb.git",
  1045 + "reference": "29af3a707fa2070b73b268e847b264f29c7dff31"
  1046 + },
  1047 + "dist": {
  1048 + "type": "zip",
  1049 + "url": "https://api.github.com/repos/yii2tech/filedb/zipball/29af3a707fa2070b73b268e847b264f29c7dff31",
  1050 + "reference": "29af3a707fa2070b73b268e847b264f29c7dff31",
  1051 + "shasum": ""
  1052 + },
  1053 + "require": {
  1054 + "yiisoft/yii2": "*"
  1055 + },
  1056 + "type": "yii2-extension",
  1057 + "extra": {
  1058 + "branch-alias": {
  1059 + "dev-master": "1.0.x-dev"
  1060 + }
  1061 + },
  1062 + "autoload": {
  1063 + "psr-4": {
  1064 + "yii2tech\\filedb\\": ""
  1065 + }
  1066 + },
  1067 + "notification-url": "https://packagist.org/downloads/",
  1068 + "license": [
  1069 + "BSD-3-Clause"
  1070 + ],
  1071 + "authors": [
  1072 + {
  1073 + "name": "Paul Klimov",
  1074 + "email": "klimov.paul@gmail.com"
  1075 + }
  1076 + ],
  1077 + "description": "Provides ActiveRecord interface for data declared in static files",
  1078 + "keywords": [
  1079 + "active",
  1080 + "filedb",
  1081 + "record",
  1082 + "static",
  1083 + "yii2"
  1084 + ],
  1085 + "time": "2017-02-06 10:58:30"
  1086 + },
  1087 + {
1040 "name": "yiisoft/yii2", 1088 "name": "yiisoft/yii2",
1041 "version": "2.0.11.2", 1089 "version": "2.0.11.2",
1042 "source": { 1090 "source": {