src/Action/GetStatusAction.php line 22

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Action;
  4. use Symfony\Component\HttpFoundation\JsonResponse;
  5. /**
  6. * Get status action for healthy check
  7. *
  8. * @author Michel Chowanski <michel.chowanski@bestit-online.de>
  9. * @package App\Action
  10. */
  11. class GetStatusAction
  12. {
  13. /**
  14. * Get status
  15. *
  16. * @return JsonResponse
  17. */
  18. public function __invoke(): JsonResponse
  19. {
  20. return new JsonResponse([
  21. 'status' => 'ok'
  22. ]);
  23. }
  24. }