Example #1
0
 /**
  * Check the request and reject callback for array sessions.
  *
  * @param  \Symfony\Component\HttpFoundation\Request  $request
  * @return void
  */
 public function checkRequestForArraySessions(Request $request)
 {
     if (is_null($this->reject)) {
         return;
     }
     if (call_user_func($this->reject, $request)) {
         $this->manager->setDefaultDriver('array');
     }
 }
Example #2
0
 /**
  * Set the default session driver name.
  *
  * @param string $name
  * @return void 
  * @static 
  */
 public static function setDefaultDriver($name)
 {
     \Illuminate\Session\SessionManager::setDefaultDriver($name);
 }