Skip to content

Commit c0e37e0

Browse files
authored
[RFC] use singular folder pattern like other components codes
1 parent d4c48be commit c0e37e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ making it easier to render and re-use small template "units" - like an
77

88
Every component consists of (1) a class::
99

10-
// src/Twig/Components/Alert.php
10+
// src/Twig/Component/Alert.php
1111
namespace App\Twig\Components;
1212

1313
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
@@ -23,7 +23,7 @@ And (2) a template:
2323

2424
.. code-block:: html+twig
2525

26-
{# templates/components/Alert.html.twig #}
26+
{# templates/component/Alert.html.twig #}
2727
<div class="alert alert-{{ type }}">
2828
{{ message }}
2929
</div>

0 commit comments

Comments
 (0)