36 lines
632 B
PHP
36 lines
632 B
PHP
<?php
|
|
|
|
namespace PHPCensor\Security\Authentication\UserProvider;
|
|
|
|
use PHPCensor\Security\Authentication\UserProviderInterface;
|
|
|
|
/**
|
|
* Abstract user provider.
|
|
*
|
|
* @author Adirelle <adirelle@gmail.com>
|
|
*/
|
|
abstract class AbstractProvider implements UserProviderInterface
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $key;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $config;
|
|
|
|
/**
|
|
* AbstractProvider constructor
|
|
*
|
|
* @param string $key
|
|
* @param array $config
|
|
*/
|
|
public function __construct($key, array $config)
|
|
{
|
|
$this->key = $key;
|
|
$this->config = $config;
|
|
}
|
|
}
|