PHP Class Cartalyst\Sentinel\Persistences\IlluminatePersistenceRepository

Inheritance: implements Cartalyst\Sentinel\Persistences\PersistenceRepositoryInterface, use trait Cartalyst\Support\Traits\RepositoryTrait
ファイルを表示 Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Property Type Description
$cookie Cartalyst\Sentinel\Cookies\CookieInterface Cookie storage driver.
$model string Model name.
$session Cartalyst\Sentinel\Sessions\SessionInterface Session storage driver.
$single boolean Single session.

Public Methods

Method Description
__construct ( Cartalyst\Sentinel\Sessions\SessionInterface $session, Cartalyst\Sentinel\Cookies\CookieInterface $cookie, string $model = null, boolean $single = false ) : void Create a new Sentinel persistence repository.
check ( ) {@inheritDoc}
findByPersistenceCode ( $code ) {@inheritDoc}
findUserByPersistenceCode ( $code ) {@inheritDoc}
flush ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable, $forget = true ) {@inheritDoc}
forget ( ) {@inheritDoc}
persist ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable, $remember = false ) {@inheritDoc}
persistAndRemember ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable ) {@inheritDoc}
remove ( $code ) {@inheritDoc}

Method Details

__construct() public method

Create a new Sentinel persistence repository.
public __construct ( Cartalyst\Sentinel\Sessions\SessionInterface $session, Cartalyst\Sentinel\Cookies\CookieInterface $cookie, string $model = null, boolean $single = false ) : void
$session Cartalyst\Sentinel\Sessions\SessionInterface
$cookie Cartalyst\Sentinel\Cookies\CookieInterface
$model string
$single boolean
return void

check() public method

{@inheritDoc}
public check ( )

findByPersistenceCode() public method

{@inheritDoc}
public findByPersistenceCode ( $code )

findUserByPersistenceCode() public method

{@inheritDoc}
public findUserByPersistenceCode ( $code )

flush() public method

{@inheritDoc}
public flush ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable, $forget = true )
$persistable Cartalyst\Sentinel\Persistences\PersistableInterface

forget() public method

{@inheritDoc}
public forget ( )

persist() public method

{@inheritDoc}
public persist ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable, $remember = false )
$persistable Cartalyst\Sentinel\Persistences\PersistableInterface

persistAndRemember() public method

{@inheritDoc}
public persistAndRemember ( Cartalyst\Sentinel\Persistences\PersistableInterface $persistable )
$persistable Cartalyst\Sentinel\Persistences\PersistableInterface

remove() public method

{@inheritDoc}
public remove ( $code )

Property Details

$model protected_oe property

Model name.
protected string $model
return string

$session protected_oe property

Session storage driver.
protected SessionInterface,Cartalyst\Sentinel\Sessions $session
return Cartalyst\Sentinel\Sessions\SessionInterface

$single protected_oe property

Single session.
protected bool $single
return boolean