Browse Source

Issue #15957: dropped deprecated User::getAuthManager() method (#15981)

tags/3.0.0-alpha1
Pavel Ivanov 7 years ago committed by Alexander Makarov
parent
commit
b0b06b1ad3
  1. 14
      framework/web/User.php

14
framework/web/User.php

@ -757,20 +757,6 @@ class User extends Component
} }
/** /**
* Returns auth manager associated with the user component.
*
* By default this is the `authManager` application component.
* You may override this method to return a different auth manager instance if needed.
* @return \yii\rbac\ManagerInterface
* @since 2.0.6
* @deprecated since version 2.0.9, to be removed in 2.1. Use [[getAccessChecker()]] instead.
*/
protected function getAuthManager()
{
return Yii::$app->getAuthManager();
}
/**
* Returns the access checker used for checking access. * Returns the access checker used for checking access.
* *
* By default this is the `authManager` application component. * By default this is the `authManager` application component.

Loading…
Cancel
Save