Example #1
0
 /**
  * @param PostResponseEvent $event
  */
 public function onKernelTerminate(PostResponseEvent $event)
 {
     foreach ($this->users as $user) {
         try {
             $this->galittProvider->updateAccountFidelity($user);
         } catch (\Exception $e) {
             $this->logger->error(sprintf('An error occured while trying to update a customer (id : %s, email : %s) account on Galitt via the updateAccountFidelity webservice. Request failed with message : "%s"', $user->getId(), $user->getEmail(), $e->getMessage()));
         }
     }
 }