Browse Source

adjusted the advanced app to use the new yii composer extension installer.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
10553b6afc
  1. 1
      apps/advanced/backend/config/main.php
  2. 1
      apps/advanced/console/config/main.php
  3. 1
      apps/advanced/environments/dev/frontend/web/index.php
  4. 1
      apps/advanced/environments/dev/yii
  5. 1
      apps/advanced/environments/prod/frontend/web/index.php
  6. 1
      apps/advanced/environments/prod/yii
  7. 1
      apps/advanced/frontend/config/main.php

1
apps/advanced/backend/config/main.php

@ -15,6 +15,7 @@ return [
'preload' => ['log'],
'controllerNamespace' => 'backend\controllers',
'modules' => [],
'extensions' => require(__DIR__ . '/../../vendor/yii-extensions.php'),
'components' => [
'request' => [
'enableCsrfValidation' => true,

1
apps/advanced/console/config/main.php

@ -15,6 +15,7 @@ return [
'controllerNamespace' => 'console\controllers',
'modules' => [
],
'extensions' => require(__DIR__ . '/../../vendor/yii-extensions.php'),
'components' => [
'db' => $params['components.db'],
'cache' => $params['components.cache'],

1
apps/advanced/environments/dev/frontend/web/index.php

@ -4,7 +4,6 @@ defined('YII_ENV') or define('YII_ENV', 'dev');
require(__DIR__ . '/../../vendor/autoload.php');
require(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php');
Yii::importNamespaces(require(__DIR__ . '/../../vendor/composer/autoload_namespaces.php'));
$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../config/main.php'),

1
apps/advanced/environments/dev/yii

@ -16,7 +16,6 @@ defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
require(__DIR__ . '/vendor/autoload.php');
require(__DIR__ . '/vendor/yiisoft/yii2/yii/Yii.php');
Yii::importNamespaces(require(__DIR__ . '/vendor/composer/autoload_namespaces.php'));
$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/console/config/main.php'),

1
apps/advanced/environments/prod/frontend/web/index.php

@ -4,7 +4,6 @@ defined('YII_ENV') or define('YII_ENV', 'prod');
require(__DIR__ . '/../../vendor/autoload.php');
require(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php');
Yii::importNamespaces(require(__DIR__ . '/../../vendor/composer/autoload_namespaces.php'));
$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../config/main.php'),

1
apps/advanced/environments/prod/yii

@ -16,7 +16,6 @@ defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
require(__DIR__ . '/vendor/autoload.php');
require(__DIR__ . '/vendor/yiisoft/yii2/yii/Yii.php');
Yii::importNamespaces(require(__DIR__ . '/vendor/composer/autoload_namespaces.php'));
$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/console/config/main.php'),

1
apps/advanced/frontend/config/main.php

@ -16,6 +16,7 @@ return [
'modules' => [
'gii' => 'yii\gii\Module'
],
'extensions' => require(__DIR__ . '/../../vendor/yii-extensions.php'),
'components' => [
'request' => [
'enableCsrfValidation' => true,

Loading…
Cancel
Save