yii\web\User::getAuthManager PHP Method

getAuthManager() protected method

By default this is the authManager application component. You may override this method to return a different auth manager instance if needed.
Deprecation: since version 2.0.9, to be removed in 2.1. Use [[getAccessChecker()]] instead.
Since: 2.0.6
protected getAuthManager ( ) : yii\rbac\ManagerInterface
return yii\rbac\ManagerInterface
    protected function getAuthManager()
    {
        return Yii::$app->getAuthManager();
    }