protected function handleAction($filterChain, $actionInstance)
 {
     $moduleName = $actionInstance->getModuleName();
     $actionName = $actionInstance->getActionName();
     $request = $actionInstance->getRequest();
     if ($request->needToRedirectToSoftBankGateway()) {
         $request->redirectToSoftBankGateway();
     }
     $this->handleSsl($actionInstance);
     $dispatcher = sfContext::getInstance()->getEventDispatcher();
     // sfDoctrinePlugin needs to notify this event for enabling i18n
     $dispatcher->notify(new sfEvent($this, 'user.change_culture', array('culture' => sfContext::getInstance()->getUser()->getCulture())));
     self::notifyPreExecuteActionEvent($this, $dispatcher, $actionInstance);
     Doctrine::getTable('SnsTerm')->configure(sfContext::getInstance()->getUser()->getCulture(), sfConfig::get('sf_app'));
     if (sfConfig::has('op_is_use_captcha')) {
         sfConfig::set('op_is_use_captcha', opConfig::get('is_use_captcha'));
     }
     try {
         $result = parent::handleAction($filterChain, $actionInstance);
     } catch (opRuntimeException $e) {
         $this->forwardToErrorAction();
     } catch (sfValidatorErrorSchema $e) {
         if (isset($e['_csrf_token'])) {
             $this->forwardToCSRFErrorAction();
         }
         throw $e;
     }
     self::notifyPostExecuteActionEvent($this, $dispatcher, $actionInstance, $result);
     return $result;
 }
 protected function handleAction($filterChain, $actionInstance)
 {
     $moduleName = $actionInstance->getModuleName();
     $actionName = $actionInstance->getActionName();
     $dispatcher = sfContext::getInstance()->getEventDispatcher();
     // sfDoctrinePlugin needs to notify this event for enabling i18n
     $dispatcher->notify(new sfEvent($this, 'user.change_culture', array('culture' => sfContext::getInstance()->getUser()->getCulture())));
     $dispatcher->notify(new sfEvent($this, 'op_action.pre_execute_' . $moduleName . '_' . $actionName, array('moduleName' => $moduleName, 'actionName' => $actionName, 'actionInstance' => $actionInstance)));
     Doctrine::getTable('SnsTerm')->configure(sfContext::getInstance()->getUser()->getCulture(), sfConfig::get('sf_app'));
     try {
         $result = parent::handleAction($filterChain, $actionInstance);
     } catch (opRuntimeException $e) {
         $this->forwardToErrorAction();
     } catch (sfValidatorErrorSchema $e) {
         if (isset($e['_csrf_token'])) {
             $this->forwardToCSRFErrorAction();
         }
         throw $e;
     }
     $dispatcher->notify(new sfEvent($this, 'op_action.post_execute_' . $moduleName . '_' . $actionName, array('moduleName' => $moduleName, 'actionName' => $actionName, 'actionInstance' => $actionInstance, 'result' => $result)));
     return $result;
 }