Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions framework/yii/base/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions framework/yii/web/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down