Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions components/uid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,8 @@ on the configuration you defined::

class FooService
{
private UuidFactory $uuidFactory;

public function __construct(UuidFactory $uuidFactory)
public function __construct(private UuidFactory $uuidFactory)
{
$this->uuidFactory = $uuidFactory;
}

public function generate(): void
Expand Down Expand Up @@ -337,11 +334,8 @@ Like UUIDs, ULIDs have their own factory, ``UlidFactory``, that can be used to g

class FooService
{
private UlidFactory $ulidFactory;

public function __construct(UlidFactory $ulidFactory)
public function __construct(private UlidFactory $ulidFactory)
{
$this->ulidFactory = $ulidFactory;
}

public function generate(): void
Expand Down