diff --git a/src/State/TagListProvider.php b/src/State/TagListProvider.php new file mode 100644 index 0000000..0edc9d1 --- /dev/null +++ b/src/State/TagListProvider.php @@ -0,0 +1,35 @@ +applicationRepository->findOneBy(['slug' => $slug]); + + if (null === $application) { + throw new NotFoundHttpException(sprintf('Application "%s" not found.', $slug)); + } + + $dto = new TagList(); + $dto->tags = $this->giteaRegistryService->listTags($application->getRegistryImage()); + + return $dto; + } +}