From d2d77fbb4a01cd07d4fbffb81344f19b2006e4da Mon Sep 17 00:00:00 2001 From: "Martin Studer, fluxlabs ag" Date: Mon, 11 Apr 2022 20:31:56 -0400 Subject: [PATCH] v1-0-2 --- CHANGELOG.md | 4 ++++ composer.json | 2 +- fn/change.php | 2 +- fn/delete.php | 4 ++-- src/Api.php | 1 - src/Core/Ports/AggregateRootService.php | 2 -- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5406ad..9c58599 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## [1.0.2] +* fix: change signature +* fix: delete dignature + ## [1.0.1] * fixed create signature diff --git a/composer.json b/composer.json index 66801d4..a842e5d 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "flux-eco/aggregate-root", "description": "Manage aggregate roots described as json schema", - "version": "1.0.1", + "version": "1.0.2", "type": "flux-app", "keywords": [ "flux-eco", diff --git a/fn/change.php b/fn/change.php index f025b82..ae7e6cf 100644 --- a/fn/change.php +++ b/fn/change.php @@ -14,8 +14,8 @@ function change( AggregateRoot\Api::newFromEnv()->change( $correlationId, $actorEmail, - $aggregateName, $aggregateId, + $aggregateName, $payload ); } \ No newline at end of file diff --git a/fn/delete.php b/fn/delete.php index c91d64e..2507166 100644 --- a/fn/delete.php +++ b/fn/delete.php @@ -14,7 +14,7 @@ function delete( AggregateRoot\Api::newFromEnv()->delete( $correlationId, $actorEmail, - $aggregateName, - $aggregateId + $aggregateId, + $aggregateName ); } \ No newline at end of file diff --git a/src/Api.php b/src/Api.php index f37eaf1..96f752a 100644 --- a/src/Api.php +++ b/src/Api.php @@ -7,7 +7,6 @@ class Api { - private Adapters\ValueObjectProvider\ValueObjectProviderClient $valueObjectCreatorClient; private Ports\AggregateRootService $aggregateRootService; private Adapters\Outbounds $outbounds; diff --git a/src/Core/Ports/AggregateRootService.php b/src/Core/Ports/AggregateRootService.php index 7390c21..821eab0 100644 --- a/src/Core/Ports/AggregateRootService.php +++ b/src/Core/Ports/AggregateRootService.php @@ -58,8 +58,6 @@ public function create( string $aggregateName, string $payload ) : void { - echo "create AggregateRoot"; - $aggregateRoot = Domain\AggregateRoot::new($aggregateId, $aggregateName, $this->outbounds); $aggregateRoot->create(