Skip to content

Commit

Permalink
composer settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Shekhovtsovy committed Nov 25, 2015
1 parent 228b851 commit a3553d3
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/environments

# yii console command
/yii

Expand Down
1 change: 0 additions & 1 deletion backend/web/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/index.php
/index-test.php
18 changes: 18 additions & 0 deletions backend/web/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/../../vendor/autoload.php');
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
require(__DIR__ . '/../../common/config/bootstrap.php');
require(__DIR__ . '/../config/bootstrap.php');

$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../../common/config/main.php'),
require(__DIR__ . '/../../common/config/main-local.php'),
require(__DIR__ . '/../config/main.php'),
require(__DIR__ . '/../config/main-local.php')
);

$application = new yii\web\Application($config);
$application->run();
30 changes: 20 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"name": "yiisoft/yii2-app-advanced",
"description": "Yii 2 Advanced Project Template",
"keywords": ["yii2", "framework", "advanced", "project template"],
"homepage": "http://www.yiiframework.com/",
"name": "lowbase/yii2-lowbase",
"description": "Yii 2 CMS for programmers",
"keywords": ["yii2", "framework", "cms", "advanced", "project template"],
"homepage": "http://www.lowbase.ru/",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
"source": "https://github.com/lowbase/yii2-lowbase"
},
"minimum-stability": "stable",
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": ">=2.0.6",
Expand All @@ -30,6 +26,20 @@
"mihaildev/yii2-ckeditor": "*"
},
"require-dev": {
"php": ">=5.4.0",
"yiisoft/yii2": ">=2.0.6",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"yiisoft/yii2-imagine": "~2.0.0",
"nodge/yii2-eauth": "~2.0",
"paulzi/yii2-nested-intervals" : "*",
"kartik-v/yii2-mpdf":"*",
"kartik-v/yii2-widgets":"*",
"kartik-v/yii2-grid":"*",
"kartik-v/yii2-field-range": "*",
"kartik-v/bootstrap-fileinput": "dev-master",
"mihaildev/yii2-elfinder": "*",
"mihaildev/yii2-ckeditor": "*",
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
Expand Down
1 change: 0 additions & 1 deletion frontend/web/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/index.php
/index-test.php
18 changes: 18 additions & 0 deletions frontend/web/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/../../vendor/autoload.php');
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
require(__DIR__ . '/../../common/config/bootstrap.php');
require(__DIR__ . '/../config/bootstrap.php');

$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../../common/config/main.php'),
require(__DIR__ . '/../../common/config/main-local.php'),
require(__DIR__ . '/../config/main.php'),
require(__DIR__ . '/../config/main-local.php')
);

$application = new yii\web\Application($config);
$application->run();

0 comments on commit a3553d3

Please sign in to comment.