Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.
/ JwPersistentUser Public archive

Augments ZfcUser - safely keeps users logged on after browser sessions ends.

License

Notifications You must be signed in to change notification settings

Webador/JwPersistentUser

Repository files navigation

Persistent storage for ZfcUser

Build Status Scrutinizer Code Quality Code Coverage

JwPersistentUser safely keeps users logged on after browser sessions ends. It is an extension module for ZfcUser.

Installation

  1. The state that this application needs is stored in models implementing the JwPersistentUser\Model\SerieTokenInterface. By default this module is configured to use the bundled JwPersistentUser Model\SerieToken model. One can however configure another model that implements this interface.

    For example:

    <?php return [
        'jwpersistentuser' => [
            'serieTokenEntityClass' => 'User\Model\SerieToken'
        ]
    ];
  2. Now we need to tell how to store this data. Therefore a service needs to be registered in the service manager. This service needs to implement JwPersistentUser\Mapper\SerieTokenMapperInterface and be registered under under JwPersistentUser\Mapper\SerieToken in the service manager.

    For example:

    <?php return [
        'service_manager' => [
            'JwPersistentUser\Mapper\SerieToken' => 'User\DatabaseSerieTokenMapper'
        ]
    ];

Configuration

You can tweak the setting found described in vendor/jouwweb/jw-persistent-user/config/jwpersistentuser.local.php.dist.

About

Augments ZfcUser - safely keeps users logged on after browser sessions ends.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages