Skip to content

Commit 08f8285

Browse files
committed
Making the component name optional
+ changing standard to use upper camel case for component names
1 parent 8eb4e08 commit 08f8285

35 files changed

+234
-216
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,

0 commit comments

Comments
 (0)