Skip to content

Commit c4d8a1d

Browse files
committed
Update details about controller naming
1 parent 25c8401 commit c4d8a1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bundles/best_practices.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,9 @@ Twig ``stimulus_*`` functions.
656656

657657
.. tip::
658658

659-
If the bundle is named ``acme/feature`` and the controller is named ``slug``, the base key for the controller
660-
will be ``acme/feature/slug``: it's composed of the bundle name and the controller name defined in
661-
the ``package.json`` file.
659+
Controller Naming: In this example, the ``name`` of the PHP package is ``acme/feature`` and the name
660+
of the controller in ``package.json`` is ``slug``. So, the full controller name for Stimulus will be
661+
``acme--feature--slug``, though with the ``stimulus_controller()`` function, you can use ``acme/feature/slug``.
662662

663663
Learn more
664664
----------

0 commit comments

Comments
 (0)