Skip to content

Commit

Permalink
Merge pull request #510 from patchlevel/upgrade-hydrator
Browse files Browse the repository at this point in the history
upgrade hydrator & use new auto detect feature
  • Loading branch information
DavidBadura authored Feb 26, 2024
2 parents 6dd1cab + 80b2b8c commit 5f3178a
Show file tree
Hide file tree
Showing 33 changed files with 247 additions and 313 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"doctrine/dbal": "^3.8.1|^4.0.0",
"doctrine/migrations": "^3.3.2",
"patchlevel/hydrator": "^1.1.0",
"patchlevel/hydrator": "^1.2.0",
"patchlevel/worker": "^1.1.1",
"psr/cache": "^2.0.0|^3.0.0",
"psr/clock": "^1.0",
Expand Down
76 changes: 38 additions & 38 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pages/aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer;
final class ProfileRegistered
{
public function __construct(
#[IdNormalizer(Uuid::class)]
#[IdNormalizer]
public readonly Uuid $profileId,
public readonly string $name
) {}
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/aggregate_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer;
final class Profile extends BasicAggregateRoot
{
#[Id]
#[IdNormalizer(Uuid::class)]
#[IdNormalizer]
private Uuid $id;
}
```
Expand Down Expand Up @@ -68,7 +68,7 @@ use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer;
final class Profile extends BasicAggregateRoot
{
#[Id]
#[IdNormalizer(CustomId::class)]
#[IdNormalizer]
private CustomId $id;
}
```
Expand Down Expand Up @@ -127,7 +127,7 @@ use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer;
final class Profile extends BasicAggregateRoot
{
#[Id]
#[IdNormalizer(ProfileId::class)]
#[IdNormalizer]
private ProfileId $id;
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ use Patchlevel\Hydrator\Normalizer\IdNormalizer;
final class ProfileCreated
{
public function __construct(
#[IdNormalizer(Uuid::class)]
#[IdNormalizer]
public readonly Uuid $id,
#[NameNormalizer]
public readonly Name $name,
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer;
final class HotelCreated
{
public function __construct(
#[IdNormalizer(Uuid::class)]
#[IdNormalizer]
public readonly Uuid $hotelId,
public readonly string $hotelName
) {
Expand Down
Loading

0 comments on commit 5f3178a

Please sign in to comment.