From f9f6b60bc5d8a21a8ffdbd2a8614cc2b95171203 Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Sun, 8 Sep 2024 22:21:55 +0200 Subject: [PATCH] :sparkles: Add Wave Function Collapse --- .../WaveFunctionCollapseController.php | 18 +++++++++++++++++ .../wave_function_collapse/index.html.twig | 20 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/Controller/WaveFunctionCollapseController.php create mode 100644 templates/wave_function_collapse/index.html.twig diff --git a/src/Controller/WaveFunctionCollapseController.php b/src/Controller/WaveFunctionCollapseController.php new file mode 100644 index 0000000..62f79df --- /dev/null +++ b/src/Controller/WaveFunctionCollapseController.php @@ -0,0 +1,18 @@ +render('wave_function_collapse/index.html.twig', [ + 'controller_name' => 'WaveFunctionCollapseController', + ]); + } +} diff --git a/templates/wave_function_collapse/index.html.twig b/templates/wave_function_collapse/index.html.twig new file mode 100644 index 0000000..1e7c690 --- /dev/null +++ b/templates/wave_function_collapse/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello WaveFunctionCollapseController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: + +
+{% endblock %}