Merge manually pull-request #2658

This commit is contained in:
Frederic Guillot
2016-09-11 22:00:09 -04:00
parent f1d6673050
commit 20c187880c
26 changed files with 1516 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
Agregando un nuevo avatar del proveedor
=======================================
Registrar
------------
```php
$this->avatarManager->register(new CustomAvatarProvider());
```
Interface
---------
El proveedor debe implementar la interface `Kanboard\Core\User\Avatar\AvatarProviderInterface`:
| Metodo | Descripcion |
|-------------------------------|---------------------------------------------------------------|
| `render(array $user, $size)` | Renderizar HTML |
| `isActive(array $user)` | Regresa un boolean si el proveedor esta activo |
El argumento `$user` es un directorio que contiene estas llaves :
```php
[
'id' => 123,
'username' => 'admin',
'name' => 'Administrator',
'email' => 'me@localhost',
]
```