Added pluggable Avatar providers
This commit is contained in:
30
app/Core/User/Avatar/AvatarProviderInterface.php
Normal file
30
app/Core/User/Avatar/AvatarProviderInterface.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Kanboard\Core\User\Avatar;
|
||||
|
||||
/**
|
||||
* Avatar Provider Interface
|
||||
*
|
||||
* @package user
|
||||
* @author Frederic Guillot
|
||||
*/
|
||||
interface AvatarProviderInterface
|
||||
{
|
||||
/**
|
||||
* Render avatar html
|
||||
*
|
||||
* @access public
|
||||
* @param array $user
|
||||
* @param int $size
|
||||
*/
|
||||
public function render(array $user, $size);
|
||||
|
||||
/**
|
||||
* Determine if the provider is active
|
||||
*
|
||||
* @access public
|
||||
* @param array $user
|
||||
* @return boolean
|
||||
*/
|
||||
public function isActive(array $user);
|
||||
}
|
||||
Reference in New Issue
Block a user