summaryrefslogtreecommitdiff
path: root/app/ServiceProvider
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-19 11:17:58 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-19 11:17:58 -0400
commit9d4ba1471dd8410e1597a18478dbb3b7789d4ec7 (patch)
treeb8de40fa34954fd624816795d535bae1df7286c8 /app/ServiceProvider
parentfa86542f90774d7a7d8f3e81ee35821ca25b7fd4 (diff)
Added letter based avatar provider
Diffstat (limited to 'app/ServiceProvider')
-rw-r--r--app/ServiceProvider/AvatarProvider.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/ServiceProvider/AvatarProvider.php b/app/ServiceProvider/AvatarProvider.php
index 2bbc9c03..73d37d5c 100644
--- a/app/ServiceProvider/AvatarProvider.php
+++ b/app/ServiceProvider/AvatarProvider.php
@@ -6,6 +6,7 @@ use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Kanboard\Core\User\Avatar\AvatarManager;
use Kanboard\User\Avatar\GravatarProvider;
+use Kanboard\User\Avatar\LetterAvatarProvider;
/**
* Avatar Provider
@@ -25,6 +26,7 @@ class AvatarProvider implements ServiceProviderInterface
public function register(Container $container)
{
$container['avatarManager'] = new AvatarManager;
+ $container['avatarManager']->register(new LetterAvatarProvider($container));
$container['avatarManager']->register(new GravatarProvider($container));
return $container;
}