Skip to content

Commit 6332897

Browse files
committed
minor #2480 [LiveComponent] Document make:twig-component (seb-jean)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Document `make:twig-component` Second part for #480 Commits ------- bab2d3a document make:twig-component
2 parents d11f35d + bab2d3a commit 6332897

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@ fresh copy of our component. That HTML will replace the current HTML. In
176176
other words, you just generated a new random number! That's cool, but
177177
let's keep going because… things get cooler.
178178

179+
.. tip::
180+
181+
If you use the `Symfony MakerBundle`_, you can easily create a new component
182+
with the ``make:twig-component`` command:
183+
184+
.. code-block:: terminal
185+
186+
$ php bin/console make:twig-component --live EditPost
187+
179188
.. tip::
180189

181190
Need to do some extra data initialization on your component? Create

0 commit comments

Comments
 (0)