Ejemplo n.º 1
0
 public function onResult(MvcEvent $event)
 {
     parent::onResult($event);
     if ($event->isError()) {
         if ($this->logger) {
             $this->logger->info(sprintf('Unauthorized ip address "%s" attempted to push Recurly notification.', $this->whip->getIpAddress()));
         }
         $event->getResponse()->setStatusCode(HttpResponse::STATUS_CODE_403);
     }
 }
Ejemplo n.º 2
0
 public function onResult(MvcEvent $event)
 {
     parent::onResult($event);
     if ($event->isError()) {
         if ($this->logger) {
             $this->logger->info('Failed authentication attempted to push Recurly notification.');
         }
         $event->getResponse()->setStatusCode(HttpResponse::STATUS_CODE_401);
     }
 }