-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more normalizer and update getting started docs
- Loading branch information
1 parent
293c694
commit f49fda1
Showing
4 changed files
with
48 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Patchlevel\EventSourcing\Serializer\Normalizer; | ||
|
||
use Attribute; | ||
use Patchlevel\EventSourcing\Aggregate\BasicAggregateRootId; | ||
|
||
#[Attribute(Attribute::TARGET_PROPERTY)] | ||
final class BasicAggregateIdNormalizer extends AggregateIdNormalizer | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(BasicAggregateRootId::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Patchlevel\EventSourcing\Serializer\Normalizer; | ||
|
||
use Attribute; | ||
use Patchlevel\EventSourcing\Aggregate\UuidAggregateRootId; | ||
|
||
#[Attribute(Attribute::TARGET_PROPERTY)] | ||
final class UuidAggregateIdNormalizer extends AggregateIdNormalizer | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(UuidAggregateRootId::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters