Exemple #1
0
 /**
  * @param \Spryker\Shared\ZedRequest\Client\RequestInterface $transferObject
  * @param \Symfony\Component\HttpFoundation\Request $httpRequest
  *
  * @return void
  */
 public function setRepeatData(RequestInterface $transferObject, HttpRequest $httpRequest)
 {
     if ($this->isRepeatInProgress) {
         return;
     }
     if (Config::get(ApplicationConstants::SET_REPEAT_DATA, false) === false) {
         return;
     }
     $repeatData = ['module' => $httpRequest->attributes->get('module'), 'controller' => $httpRequest->attributes->get('controller'), 'action' => $httpRequest->attributes->get('action'), 'params' => $transferObject->toArray(false)];
     $mvc = sprintf('%s_%s_%s', $httpRequest->attributes->get('module'), $httpRequest->attributes->get('controller'), $httpRequest->attributes->get('action'));
     Log::setFlashInFile($repeatData, 'last_yves_request_' . $mvc . '.log');
     Log::setFlashInFile($repeatData, 'last_yves_request.log');
 }