Skip to content

Commit dd909a6

Browse files
authored
Add support for Symfony UX Twig Component and Live Component attributes (#329)
1 parent a563da3 commit dd909a6

6 files changed

Lines changed: 765 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ parameters:
7070
- `EventSubscriberInterface::getSubscribedEvents`
7171
- `onKernelResponse`, `onKernelRequest`, etc
7272
- `!php/const` and `!php/enum` references in `config` yamls
73+
- Symfony UX: `#[AsTwigComponent]`/`#[AsLiveComponent]` (constructor, `mount()`), `#[LiveProp]`, `#[LiveAction]`, `#[LiveListener]`, lifecycle hooks
7374

7475
#### Doctrine:
7576
- `#[AsEntityListener]`, `#[AsDoctrineListener]` attribute

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0 || ^8.0",
4949
"symfony/routing": "^5.4 || ^6.0 || ^7.0 || ^8.0",
5050
"symfony/scheduler": "^6.3 || ^7.0 || ^8.0",
51+
"symfony/ux-live-component": "^2.34",
52+
"symfony/ux-twig-component": "^2.34",
5153
"symfony/validator": "^5.4 || ^6.0 || ^7.0 || ^8.0",
5254
"twig/twig": "^3.0"
5355
},

0 commit comments

Comments
 (0)