PHP Class Pagekit\Auth\Handler\DatabaseHandler

Inheritance: implements Pagekit\Auth\Handler\HandlerInterface
Afficher le fichier Open project: pagekit/pagekit

Protected Properties

Свойство Type Description
$config array
$connection Pagekit\Database\Connection
$cookie Pagekit\Cookie\CookieJar
$random RandomLib\Generator
$requests Symfony\Component\HttpFoundation\RequestStack

Méthodes publiques

Méthode Description
__construct ( Pagekit\Database\Connection $connection, Symfony\Component\HttpFoundation\RequestStack $requests, Pagekit\Cookie\CookieJar $cookie, RandomLib\Generator $random, array $config = null ) Constructor.
destroy ( )
read ( )
write ( $user, $remember = false )

Méthodes protégées

Méthode Description
createTable ( )
getRequest ( ) : null | Request
getToken ( ) : mixed Gets the token from the request.

Method Details

__construct() public méthode

Constructor.
public __construct ( Pagekit\Database\Connection $connection, Symfony\Component\HttpFoundation\RequestStack $requests, Pagekit\Cookie\CookieJar $cookie, RandomLib\Generator $random, array $config = null )
$connection Pagekit\Database\Connection
$requests Symfony\Component\HttpFoundation\RequestStack
$cookie Pagekit\Cookie\CookieJar
$random RandomLib\Generator
$config array

createTable() protected méthode

Deprecation: to be removed in Pagekit 1.0
protected createTable ( )

destroy() public méthode

public destroy ( )

getRequest() protected méthode

protected getRequest ( ) : null | Request
Résultat null | Symfony\Component\HttpFoundation\Request

getToken() protected méthode

Gets the token from the request.
protected getToken ( ) : mixed
Résultat mixed

read() public méthode

public read ( )

write() public méthode

public write ( $user, $remember = false )

Property Details

$config protected_oe property

protected array $config
Résultat array

$connection protected_oe property

protected Connection,Pagekit\Database $connection
Résultat Pagekit\Database\Connection

$random protected_oe property

protected Generator,RandomLib $random
Résultat RandomLib\Generator

$requests protected_oe property

protected RequestStack,Symfony\Component\HttpFoundation $requests
Résultat Symfony\Component\HttpFoundation\RequestStack