PHP Class Pagekit\Auth\Handler\DatabaseHandler

Inheritance: implements Pagekit\Auth\Handler\HandlerInterface
Show file Open project: pagekit/pagekit

Protected Properties

Property Type Description
$config array
$connection Pagekit\Database\Connection
$cookie Pagekit\Cookie\CookieJar
$random RandomLib\Generator
$requests Symfony\Component\HttpFoundation\RequestStack

Public Methods

Method 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 )

Protected Methods

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

Method Details

__construct() public method

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 method

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

destroy() public method

public destroy ( )

getRequest() protected method

protected getRequest ( ) : null | Request
return null | Symfony\Component\HttpFoundation\Request

getToken() protected method

Gets the token from the request.
protected getToken ( ) : mixed
return mixed

read() public method

public read ( )

write() public method

public write ( $user, $remember = false )

Property Details

$config protected property

protected array $config
return array

$connection protected property

protected Connection,Pagekit\Database $connection
return Pagekit\Database\Connection

$random protected property

protected Generator,RandomLib $random
return RandomLib\Generator

$requests protected property

protected RequestStack,Symfony\Component\HttpFoundation $requests
return Symfony\Component\HttpFoundation\RequestStack