| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- $params = require(__DIR__ . '/../params.php');
- $basePath = dirname(__DIR__);
- $webroot = dirname($basePath);
- $config = [
- 'id' => 'basic',
- 'basePath' => dirname(__DIR__). '/../',
- 'runtimePath' => $webroot . '/../runtime',
- 'vendorPath' => $webroot . '/../vendor',
- 'bootstrap' => ['log'],
- 'components' => require(__DIR__ . '/components.php'),
- 'modules' => require(__DIR__ . '/modules.php'),
- 'params' => $params,
- ];
- if (YII_ENV_DEV) {
- // configuration adjustments for 'dev' environment
- $config['bootstrap'][] = 'debug';
- $config['modules']['debug'] = [
- 'class' => 'yii\debug\Module',
- // uncomment the following to add your IP if you are not connecting from localhost.
- //'allowedIPs' => ['127.0.0.1', '::1'],
- ];
- $config['bootstrap'][] = 'gii';
- $config['modules']['gii'] = [
- 'class' => 'yii\gii\Module',
- // uncomment the following to add your IP if you are not connecting from localhost.
- //'allowedIPs' => ['127.0.0.1', '::1'],
- ];
- }
- return $config;
|