Exemplo n.º 1
0
 /**
  * Handle an incoming request, but skip OPTIONS method
  *
  * @inheritdoc
  */
 public function handle($request, Closure $next)
 {
     if ($request->isMethod('options')) {
         return $next($request);
     }
     return parent::handle($request, $next);
 }
Exemplo n.º 2
0
 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.');
     }
 }
Exemplo n.º 3
0
 /**
  * Add the session cookie to the application response.
  *
  * @param  \Symfony\Component\HttpFoundation\Response  $response
  * @param  \Illuminate\Session\SessionInterface  $session
  * @return void
  */
 protected function addCookieToResponse(Response $response, SessionInterface $session)
 {
     if (!$this->shouldPassThrough) {
         parent::addCookieToResponse($response, $session);
     }
 }
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure                 $next
  *
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     \Config::set('session.driver', 'array');
     return parent::handle($request, $next);
 }
Exemplo n.º 5
0
 /**
  * @inheritdoc
  */
 public function __construct(SessionManager $manager, ConfigRepository $config)
 {
     $config->set('session.table', 'backend_sessions');
     $config->set('session.driver', 'database');
     parent::__construct($manager);
 }
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     return parent::handle($request, $next);
     // defer to the right stuff
 }