File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1047,10 +1047,11 @@ Actions
10471047
10481048Live components require a single "default action" that is used to
10491049re-render it. By default, this is an empty ``__invoke() `` method and can
1050- be added with the ``DefaultActionTrait ``. Live components are actually
1051- Symfony controllers so you can add the normal controller
1052- attributes/annotations (i.e. ``#[Cache] ``/``#[Security] ``) to either the
1053- entire class just a single action.
1050+ be added with the ``DefaultActionTrait ``.
1051+
1052+ Live components __are__ actually Symfony controllers so you can add
1053+ controller attributes (i.e. ``#[IsGranted] ``) to either the entire class
1054+ just a single action.
10541055
10551056You can also trigger custom actions on your component. Let's pretend we
10561057want to add a "Reset Max" button to our "random number" component
You can’t perform that action at this time.
0 commit comments