Cartalyst\Sentinel\Laravel\SentinelServiceProvider::registerPersistences PHP Method

registerPersistences() protected method

Registers the persistences.
protected registerPersistences ( ) : void
return void
    protected function registerPersistences()
    {
        $this->registerSession();
        $this->registerCookie();
        $this->app->singleton('sentinel.persistence', function ($app) {
            $config = $app['config']->get('cartalyst.sentinel.persistences');
            return new IlluminatePersistenceRepository($app['sentinel.session'], $app['sentinel.cookie'], $config['model'], $config['single']);
        });
    }