Skip to content

Commit bab2d3a

Browse files
authored
document make:twig-component
1 parent 507c89c commit bab2d3a

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)