public function __construct(SessionManager $manager, Database $db)
 {
     parent::__construct($manager);
     $this->key = env('COMMON_SESSION');
     $this->redis = $db->connection('common');
     if ($this->redis === null) {
         throw new ResourceNotFoundException('Redis Common Connection is not exists.');
     }
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 public function __construct(SessionManager $manager, ConfigRepository $config)
 {
     $config->set('session.table', 'backend_sessions');
     $config->set('session.driver', 'database');
     parent::__construct($manager);
 }