diff --git a/framework/yii/base/Application.php b/framework/yii/base/Application.php index 497cb2fb530..23a3275cbc6 100644 --- a/framework/yii/base/Application.php +++ b/framework/yii/base/Application.php @@ -14,7 +14,6 @@ /** * Application is the base class for all application classes. * - * @property \yii\rbac\Manager $authManager The auth manager for this application. This property is read-only. * @property string $basePath The root directory of the application. * @property \yii\caching\Cache $cache The cache application component. Null if the component is not enabled. * This property is read-only. @@ -452,15 +451,6 @@ public function getI18n() return $this->getComponent('i18n'); } - /** - * Returns the auth manager for this application. - * @return \yii\rbac\Manager the auth manager for this application. - */ - public function getAuthManager() - { - return $this->getComponent('authManager'); - } - /** * Registers the core application components. * @see setComponents diff --git a/framework/yii/web/Application.php b/framework/yii/web/Application.php index 13b55888da6..b759516db35 100644 --- a/framework/yii/web/Application.php +++ b/framework/yii/web/Application.php @@ -13,6 +13,7 @@ /** * Application is the base class for all web application classes. * + * @property \yii\rbac\Manager $authManager The auth manager for this application. This property is read-only. * @property AssetManager $assetManager The asset manager component. This property is read-only. * @property string $homeUrl The homepage URL. * @property Request $request The request component. This property is read-only. @@ -151,6 +152,15 @@ public function getUser() return $this->getComponent('user'); } + /** + * Returns the auth manager for this application. + * @return \yii\rbac\Manager the auth manager for this application. + */ + public function getAuthManager() + { + return $this->getComponent('authManager'); + } + /** * Returns the asset manager. * @return AssetManager the asset manager component