From abaa95f71d18c3620944ddc16e3d4b7595bd7fe0 Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 11 Apr 2022 16:02:04 +0200 Subject: [PATCH] initial commit --- src/Controller/MainController.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/Controller/MainController.php diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php new file mode 100644 index 0000000..bbfdd93 --- /dev/null +++ b/src/Controller/MainController.php @@ -0,0 +1,29 @@ +findOneRandom(); + + return $this->render(view: 'base.html.twig', parameters: [ + 'quote' => $quote->getQuote() + ]); + } + +}