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
1047
1047
1048
1048
Live components require a single "default action" that is used to
1049
1049
re-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.
1054
1055
1055
1056
You can also trigger custom actions on your component. Let's pretend we
1056
1057
want to add a "Reset Max" button to our "random number" component
You can’t perform that action at this time.
0 commit comments