Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param string $action
- * @param string $timeStamp
- * @param string $uniqid
- * @param string $userName
- * @param array $additional
- * @param string $adminUser
- * @param string $adminPassword
- *
- * @return SoapServerLog
- */
- protected function createLogFor($action, $uniqid, $userName, $additional, $adminUser = '', $adminPassword = '', $market)
- {
- $today=new \DateTime();
- $log = new SoapServerLog();
- $log->setActionType($action);
- $log->setTimestamp($today->format('c'));
- $log->setUserName($userName);
- $log->setClientUniqid($uniqid);
- $log->setAdditionalData($additional);
- $log->setConsumer($market);
- $this->log = $log;
- }
- /**
- * @param string $status
- */
- protected function saveLog($status = SoapServerLog::PROCESSED, Response $response = null)
- {
- $this->log->setStatus($status);
- $this->log->setResponse($response);
- $this->em->persist($this->log);
- $this->em->flush($this->log);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement