public function loadFeedback()
    {
        $serviceName = NotificationServices::APPLE_PUSH_NOTIFICATIONS_SERVICE;

        try {
            $this->logger->info(sprintf("Querying the feedback service '%s'", $serviceName));

            $connection = $this->initFeedbackConnection($serviceName);

            $this
                ->responseHandler
                ->addResponse(
                    $connection->sendRequest()
                );

        } catch (RuntimeException $e) {
            $this->logger->error(
                sprintf("Runtime error while acquiring feedback: %s", $e->getMessage())
            );

        } catch (\Exception $e) {
            $this->logger->error(
                sprintf("Error occurs while acquiring feedback: %s", $e->getMessage())
            );
        }

        return $this;
    }
public function loadFeedback()
    {
        $serviceName = NotificationServices::APPLE_PUSH_NOTIFICATIONS_SERVICE;

        try {
            $this->logger->info(sprintf("Querying the feedback service '%s'", $serviceName));

            $connection = $this->initFeedbackConnection($serviceName);

            $this
                ->responseHandler
                ->addResponse(
                    $connection->sendRequest()
                );

        } catch (RuntimeException $e) {
            $this->logger->error(
                sprintf("Runtime error while acquiring feedback: %s", $e->getMessage())
            );

        } catch (\Exception $e) {
            $this->logger->error(
                sprintf("Error occurs while acquiring feedback: %s", $e->getMessage())
            );
        }

        return $this;
    }
public function loadFeedback ( ) { $ serviceName = NotificationServices :: APPLE_PUSH_NOTIFICATIONS_SERVICE ; try { $ this -> logger -> info ( sprintf ( "Querying the feedback service '%s'" , $ serviceName ) ) ; $ connection = $ this -> initFeedbackConnection ( $ serviceName ) ; $ this -> responseHandler -> addResponse ( $ connection -> sendRequest ( ) ) ; } catch ( RuntimeException $ e ) { $ this -> logger -> error ( sprintf ( "Runtime error while acquiring feedback: %s" , $ e -> getMessage ( ) ) ) ; } catch ( \ Exception $ e ) { $ this -> logger -> error ( sprintf ( "Error occurs while acquiring feedback: %s" , $ e -> getMessage ( ) ) ) ; } return $ this ; }
Tries to connect and load feedback data

@return $this
@throws RuntimeException
@throws \Exception
Tries to connect and load feedback data