From c3bce6b611ab8529f8bc94277270535f812c6271 Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Tue, 21 May 2013 23:00:18 +0400 Subject: [PATCH] YiiBase move all after class definition --- yii/YiiBase.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/yii/YiiBase.php b/yii/YiiBase.php index 2fac476..7e9a91b 100644 --- a/yii/YiiBase.php +++ b/yii/YiiBase.php @@ -70,9 +70,7 @@ class YiiBase * @see getAlias * @see setAlias */ - public static $aliases = array( - '@yii' => __DIR__, - ); + public static $aliases; /** * @var array initial property values that will be applied to objects newly created via [[createObject]]. * The array keys are class names without leading backslashes "\", and the array values are the corresponding @@ -615,4 +613,7 @@ class YiiBase } } -YiiBase::$aliases['@yii/bootstrap'] = __DIR__ . '/bootstrap'; +YiiBase::$aliases = array( + '@yii' => __DIR__, + '@yii/bootstrap' => __DIR__ . '/bootstrap', +);