fixed all tests

This commit is contained in:
Antonio Ramirez
2016-12-11 21:34:22 +01:00
parent 4588d77129
commit 4c9b9671b5
37 changed files with 214 additions and 135 deletions

View File

@ -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]);
}
}