From 45731b4eb8bb572f7c86e1520d153e0364596766 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 12 Jul 2013 07:36:00 -0400 Subject: [PATCH] import namespaces. --- www/index-test.php | 2 +- www/index.php | 2 +- yii | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/index-test.php b/www/index-test.php index c744dc7..80d0953 100644 --- a/www/index-test.php +++ b/www/index-test.php @@ -10,7 +10,7 @@ defined('YII_ENV') or define('YII_ENV', 'test'); require_once(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); require_once(__DIR__ . '/../vendor/autoload.php'); -require(__DIR__ . '/../vendor/composer/autoload_namespaces.php'); +Yii::importNamespaces(require(__DIR__ . '/../vendor/composer/autoload_namespaces.php')); $config = require(__DIR__ . '/../config/web-test.php'); diff --git a/www/index.php b/www/index.php index fc78e6b..fb66386 100644 --- a/www/index.php +++ b/www/index.php @@ -6,7 +6,7 @@ defined('YII_ENV') or define('YII_ENV', 'dev'); require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); require(__DIR__ . '/../vendor/autoload.php'); -require(__DIR__ . '/../vendor/composer/autoload_namespaces.php'); +Yii::importNamespaces(require(__DIR__ . '/../vendor/composer/autoload_namespaces.php')); $config = require(__DIR__ . '/../config/web.php'); diff --git a/yii b/yii index 5762bb7..73968c1 100755 --- a/yii +++ b/yii @@ -15,7 +15,7 @@ defined('STDIN') or define('STDIN', fopen('php://stdin', 'r')); require(__DIR__ . '/vendor/yiisoft/yii2/yii/Yii.php'); require(__DIR__ . '/vendor/autoload.php'); -require(__DIR__ . '/vendor/composer/autoload_namespaces.php'); +Yii::importNamespaces(require(__DIR__ . '/vendor/composer/autoload_namespaces.php')); $config = require(__DIR__ . '/config/console.php');