src/Resources/SnsApplication.php
public function getResources()
    {
//        $refresh = $this->request->queryBool('refresh');

        $out = [];
        $token = null;
        try {
            do {
                $result = $this->service->getConnection()->listPlatformApplications(
                    [
                        'NextToken' => $token
                    ]
                );
                $topics = $result['PlatformApplications'];
                $token = $result['NextToken'];

                if (!empty($topics)) {
                    $out = array_merge($out, $topics);
                }
            } while ($token);
        } catch (\Exception $ex) {
            if (null !== $newEx = Sns::translateException($ex)) {
                throw $newEx;
            }

            throw new InternalServerErrorException("Failed to retrieve applications.\n{$ex->getMessage()}",
                $ex->getCode());
        }

        return $out;
    }
public function getResources()
    {
//        $refresh = $this->request->queryBool('refresh');

        $out = [];
        $token = null;
        try {
            do {
                $result = $this->service->getConnection()->listPlatformApplications(
                    [
                        'NextToken' => $token
                    ]
                );
                $topics = $result['PlatformApplications'];
                $token = $result['NextToken'];

                if (!empty($topics)) {
                    $out = array_merge($out, $topics);
                }
            } while ($token);
        } catch (\Exception $ex) {
            if (null !== $newEx = Sns::translateException($ex)) {
                throw $newEx;
            }

            throw new InternalServerErrorException("Failed to retrieve applications.\n{$ex->getMessage()}",
                $ex->getCode());
        }

        return $out;
    }
{@inheritdoc}