Skip to content

Commit 30c5454

Browse files
committed
remove "Customize Default Action" doc section
1 parent a904bd3 commit 30c5454

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/LiveComponent/README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -541,26 +541,6 @@ class RandomNumberComponent
541541
}
542542
```
543543

544-
### Customize Default Action
545-
546-
The default component action is `__invoke()` by default. You
547-
can customize the method with the `AsLiveComponent` attribute:
548-
549-
```php
550-
// src/Components/ProductSearchComponent.php
551-
namespace App\Components;
552-
553-
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
554-
555-
#[AsLiveComponent('product_search', defaultAction: 'defaultAction()')]
556-
class ProductSearchComponent
557-
{
558-
public function defaultAction(): void
559-
{
560-
}
561-
}
562-
```
563-
564544
### Actions and CSRF Protection
565545

566546
When you trigger an action, a POST request is sent that contains

0 commit comments

Comments
 (0)