fixed all tests
This commit is contained in:
@ -73,7 +73,7 @@ class TokenFactory
|
||||
*/
|
||||
protected static function make($userId, $type)
|
||||
{
|
||||
return Yii::$container->get(Token::class, ['user_id' => $userId, 'type' => $type]);
|
||||
return Yii::createObject(['class' => Token::class, 'user_id' => $userId, 'type' => $type]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user