update models + added social network account services

This commit is contained in:
Antonio Ramirez
2016-12-06 00:24:24 +01:00
parent be80b12a03
commit c5279eb13c
22 changed files with 1324 additions and 62 deletions

View File

@ -0,0 +1,15 @@
<?php
namespace Da\User\Helper;
class GravatarHelper
{
public function buildId($email)
{
return md5(strtolower(trim($email)));
}
public function getUrl($id, $size = 200)
{
return '//gravatar.com/avatar/' . $id . '?s=' . $size;
}
}