How to pass identityInterface to method?
In model folder i have ‘User model’ and ‘login model’, User model implements the identityInterface. The login model contains one login() method. Now how do i pass identityInterface to this method?
Because i am getting follwing error.
PHP Recoverable Error – yii\base\ErrorException
Argument 1 passed to yii\web\User::login() must implement interface yii\web\IdentityInterface, string given, called in C:\xampp\htdocs\yii2mongo\models\Login.php on line 90 and defined