Ejemplo n.º 1
0
 /**
  * Handler for session errors
  *
  * @param \Exception $exception
  * @return bool
  */
 private function handleSessionException(\Exception $exception)
 {
     if ($exception instanceof \Magento\Framework\Exception\SessionException) {
         $this->_response->setRedirect($this->_request->getDistroBaseUrl());
         $this->_response->sendHeaders();
         return true;
     }
     return false;
 }
Ejemplo n.º 2
0
 /**
  * Handler for session errors
  *
  * @param Bootstrap $bootstrap
  * @param \Exception $exception
  * @return bool
  */
 private function handleSessionException(Bootstrap $bootstrap, \Exception $exception)
 {
     if ($exception instanceof \Magento\Framework\Session\Exception) {
         $path = $this->getBaseUrlPath($bootstrap->getParams());
         $this->_response->setRedirect($path);
         $this->_response->sendHeaders();
         return true;
     }
     return false;
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function sendHeaders()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'sendHeaders');
     if (!$pluginInfo) {
         return parent::sendHeaders();
     } else {
         return $this->___callPlugins('sendHeaders', func_get_args(), $pluginInfo);
     }
 }