diff --git a/composer.json b/composer.json index 4ad378784..211c8ef48 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,8 @@ { - "name": "yiisoft/yii2-app-basic", - "description": "Yii 2 Basic Project Template", + "name": "d3yii2/yii2-app-basic", + "description": "Yii 2 d3 Project Template", "keywords": ["yii2", "framework", "basic", "project template"], - "homepage": "http://www.yiiframework.com/", - "type": "project", + "type": "package", "license": "BSD-3-Clause", "support": { "issues": "https://github.com/yiisoft/yii2/issues?state=open", @@ -12,43 +11,10 @@ "irc": "irc://irc.freenode.net/yii", "source": "https://github.com/yiisoft/yii2" }, - "minimum-stability": "dev", "require": { "php": ">=5.4.0", "yiisoft/yii2": ">=2.0.5", "yiisoft/yii2-bootstrap": "*", "yiisoft/yii2-swiftmailer": "*" - }, - "require-dev": { - "yiisoft/yii2-codeception": "*", - "yiisoft/yii2-debug": "*", - "yiisoft/yii2-gii": "*", - "yiisoft/yii2-faker": "*" - }, - "config": { - "process-timeout": 1800 - }, - "scripts": { - "post-create-project-cmd": [ - "yii\\composer\\Installer::postCreateProject" - ] - }, - "extra": { - "yii\\composer\\Installer::postCreateProject": { - "setPermission": [ - { - "runtime": "0777", - "web/assets": "0777", - "yii": "0755" - } - ], - "generateCookieValidationKey": [ - "config/web.php" - ] - }, - "asset-installer-paths": { - "npm-asset-library": "vendor/npm", - "bower-asset-library": "vendor/bower" - } } } diff --git a/config/web.php b/config/web.php deleted file mode 100644 index 90a82876b..000000000 --- a/config/web.php +++ /dev/null @@ -1,66 +0,0 @@ - 'basic', - 'basePath' => dirname(__DIR__), - 'bootstrap' => ['log'], - 'components' => [ - 'request' => [ - // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation - 'cookieValidationKey' => '', - ], - 'cache' => [ - 'class' => 'yii\caching\FileCache', - ], - 'user' => [ - 'identityClass' => 'app\models\User', - 'enableAutoLogin' => true, - ], - 'errorHandler' => [ - 'errorAction' => 'site/error', - ], - 'mailer' => [ - 'class' => 'yii\swiftmailer\Mailer', - // send all mails to a file by default. You have to set - // 'useFileTransport' to false and configure a transport - // for the mailer to send real emails. - 'useFileTransport' => true, - ], - 'log' => [ - 'traceLevel' => YII_DEBUG ? 3 : 0, - 'targets' => [ - [ - 'class' => 'yii\log\FileTarget', - 'levels' => ['error', 'warning'], - ], - ], - ], - 'db' => require(__DIR__ . '/db.php'), - /* - 'urlManager' => [ - 'enablePrettyUrl' => true, - 'showScriptName' => false, - 'rules' => [ - ], - ], - */ - ], - 'params' => $params, -]; - -if (YII_ENV_DEV) { - // configuration adjustments for 'dev' environment - $config['bootstrap'][] = 'debug'; - $config['modules']['debug'] = [ - 'class' => 'yii\debug\Module', - ]; - - $config['bootstrap'][] = 'gii'; - $config['modules']['gii'] = [ - 'class' => 'yii\gii\Module', - ]; -} - -return $config;