From 3ae4fec5293e8c0bd2a80f95c69a389e8e38ce4c Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 30 Apr 2025 13:45:14 +0200 Subject: [PATCH] Remove some unneeded extra space --- quick_tour/the_architecture.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst index fd7781c494..3b66570b3d 100644 --- a/quick_tour/the_architecture.rst +++ b/quick_tour/the_architecture.rst @@ -190,7 +190,7 @@ After creating just *one* file, you can use this immediately: {# templates/default/index.html.twig #} {# Will print something like "Hey Symfony!" #}

{{ name|greet }}

- + How does this work? Symfony notices that your class uses the ``#[AsTwigFilter]`` attribute and so *automatically* registers it as a Twig extension. This is called autoconfiguration, and it works for *many* many things. Create a class and then extend a base class