Skip to content

Commit 945b1cd

Browse files
Fix error in TwigComponent documentation breaking the display of the default config
1 parent e29d5c2 commit 945b1cd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,14 @@ That's it! We're ready to go! If you're not using Symfony Flex, add a config
6262
file to control the template directory for your components:
6363

6464
.. _default_config:
65+
.. code-block:: yaml
6566
66-
```
67-
# config/packages/twig_component.yaml
68-
twig_component:
69-
anonymous_template_directory: 'components/'
70-
defaults:
71-
# Namespace & directory for components
72-
App\Twig\Components: 'components/'
73-
```
67+
# config/packages/twig_component.yaml
68+
twig_component:
69+
anonymous_template_directory: 'components/'
70+
defaults:
71+
# Namespace & directory for components
72+
App\Twig\Components: 'components/'
7473
7574
Component Basics
7675
----------------

0 commit comments

Comments
 (0)