get(CommentRepository::class); $rows = $commentRepository->findDocsComments($interval); //@todo add error handling if (!$rows) { echo 'The fail train has arrived.'; exit; } echo serialize($rows); } else { echo "Unknown action"; }