Skip to content

Commit d1ac61a

Browse files
committed
ExposeInTemplate PostMound & PreMount
1 parent 970013a commit d1ac61a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/TwigComponent/src/Attribute/ExposeInTemplate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* in a component template (`someProp` vs `this.someProp`). These
1717
* properties must be "accessible" (have a getter).
1818
*
19+
* @see https://symfony.com/bundles/ux-twig-component#exposeintemplate-attribute
20+
*
1921
* @author Kevin Bond <[email protected]>
2022
*/
2123
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD)]

src/TwigComponent/src/Attribute/PostMount.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
namespace Symfony\UX\TwigComponent\Attribute;
1313

1414
/**
15+
* An attribute to register a PostMount hook.
16+
*
17+
* @see https://symfony.com/bundles/ux-twig-component#postmount-hook
18+
*
1519
* @author Kevin Bond <[email protected]>
1620
*/
1721
#[\Attribute(\Attribute::TARGET_METHOD)]

src/TwigComponent/src/Attribute/PreMount.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
namespace Symfony\UX\TwigComponent\Attribute;
1313

1414
/**
15+
* An attribute to register a PreMount hook.
16+
*
17+
* @see https://symfony.com/bundles/ux-twig-component#premount-hook
18+
*
1519
* @author Kevin Bond <[email protected]>
1620
*/
1721
#[\Attribute(\Attribute::TARGET_METHOD)]

0 commit comments

Comments
 (0)