Move English documentation to folder en_US

This commit is contained in:
Frederic Guillot
2017-01-29 11:07:42 -05:00
parent 3bf4789be2
commit 0371acff89
142 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
Adding a new Avatar Provider
=============================
Registration
------------
```php
$this->avatarManager->register(new CustomAvatarProvider());
```
Interface
---------
The provider must implements the interface `Kanboard\Core\User\Avatar\AvatarProviderInterface`:
| Method | Description |
|-------------------------------|---------------------------------------------------------------|
| `render(array $user, $size)` | Render HTML |
| `isActive(array $user)` | Returns a boolean if the provider is able to render something |
The `$user` argument is a dictionary that contains these keys:
```php
[
'id' => 123,
'username' => 'admin',
'name' => 'Administrator',
'email' => 'me@localhost',
]
```