Added letter based avatar provider

This commit is contained in:
Frederic Guillot
2016-03-19 11:17:58 -04:00
parent fa86542f90
commit 9d4ba1471d
11 changed files with 238 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ namespace Kanboard\Core\User\Avatar;
/**
* Avatar Manager
*
* @package user
* @package avatar
* @author Frederic Guillot
*/
class AvatarManager
@@ -51,6 +51,8 @@ class AvatarManager
'email' => $email,
);
krsort($this->providers);
foreach ($this->providers as $provider) {
if ($provider->isActive($user)) {
return $provider->render($user, $size);