Skip to content

Commit

Permalink
minor #2480 [LiveComponent] Document make:twig-component (seb-jean)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Kocal committed Jan 5, 2025
2 parents d11f35d + bab2d3a commit 6332897
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,15 @@ fresh copy of our component. That HTML will replace the current HTML. In
other words, you just generated a new random number! That's cool, but
let's keep going because… things get cooler.

.. tip::

If you use the `Symfony MakerBundle`_, you can easily create a new component
with the ``make:twig-component`` command:

.. code-block:: terminal
$ php bin/console make:twig-component --live EditPost
.. tip::

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

0 comments on commit 6332897

Please sign in to comment.