Skip to content

Commit 8dc9a7d

Browse files
committed
[TwigComponent] Change component naming standard + optional name
1 parent 8eb4e08 commit 8dc9a7d

File tree

65 files changed

+353
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+353
-311
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 99 additions & 101 deletions
Large diffs are not rendered by default.

src/LiveComponent/src/Attribute/AsLiveComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
final class AsLiveComponent extends AsTwigComponent
2323
{
2424
public function __construct(
25-
string $name,
25+
?string $name = null,
2626
?string $template = null,
2727
private ?string $defaultAction = null,
2828
bool $exposePublicProps = true,

src/TwigComponent/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- `true` attribute values now render just the attribute name, `false` excludes it entirely.
66

7+
- The first argument to `AsTwigComponent` is now optional and defaults to the class name.
8+
79
## 2.7.0
810

911
- `PreMount` and `PostMount` hooks can now return nothing.

0 commit comments

Comments
 (0)