Skip to content

Commit 1d1ce29

Browse files
committed
Release 1.219.0
1 parent f6bef61 commit 1d1ce29

File tree

52 files changed

+1241
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1241
-10
lines changed

BuildingBlocks/src/Infrastructure/MessagingConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function enableDocumentStoreAggregates()
1616
/** This also works for state-stored sagas */
1717
return DbalConfiguration::createWithDefaults()
1818
->withDocumentStore(
19-
enableDocumentStoreAggregateRepository: true
19+
enableDocumentStoreStandardRepository: true,
2020
);
2121
}
2222

ErrorHandling/src/Infrastructure/EcotoneConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function retryConfiguration(): ErrorHandlerConfiguration
3030
public function aggregateRepository(): DbalConfiguration
3131
{
3232
return DbalConfiguration::createWithDefaults()
33-
->withDocumentStore(enableDocumentStoreAggregateRepository: true);
33+
->withDocumentStore(enableDocumentStoreStandardRepository: true,);
3434
}
3535

3636
#[ServiceContext]

MicroservicesAdvanced/CustomerService/src/Infrastructure/EcotoneConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function asynchronous_messages()
2828
public function documentStoreRepository()
2929
{
3030
return DbalConfiguration::createWithDefaults()
31-
->withDocumentStore(enableDocumentStoreAggregateRepository: true);
31+
->withDocumentStore(enableDocumentStoreStandardRepository: true,);
3232
}
3333

3434
#[ServiceContext]

MultiTenant/General/HookIntoTenantSwitch/src/Configuration/EcotoneConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getMultiTenantConfiguration(): MultiTenantConfiguration
2626
public function getDbalConfiguration(): DbalConfiguration
2727
{
2828
return DbalConfiguration::createWithDefaults()
29-
->withDocumentStore(enableDocumentStoreAggregateRepository: true);
29+
->withDocumentStore(enableDocumentStoreStandardRepository: true);
3030
}
3131

3232
}

OutboxPattern/src/Infrastructure/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ public function consumerDefinition()
4444
public function enableDocumentStoreRepository()
4545
{
4646
return DbalConfiguration::createWithDefaults()
47-
->withDocumentStore(enableDocumentStoreAggregateRepository: true);
47+
->withDocumentStore(enableDocumentStoreStandardRepository: true);
4848
}
4949
}

Testing/src/Infrastructure/MessagingConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public function registerInMemoryPollableChannel() : MessageChannelBuilder
2222
#[ServiceContext]
2323
public function registerDocumentStoreRepository(): DbalConfiguration
2424
{
25-
return DbalConfiguration::createWithDefaults()->withDocumentStore(enableDocumentStoreAggregateRepository: true);
25+
return DbalConfiguration::createWithDefaults()->withDocumentStore(enableDocumentStoreStandardRepository: true);
2626
}
2727
}

Testing/tests/Unit/Domain/Verification/VerificationProcessTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ private function bootstrapFlowTesting(StubTokenGenerator $tokenGenerator): \Ecot
104104
->withExtensionObjects([
105105
SimpleMessageChannelBuilder::createQueueChannel(MessagingConfiguration::ASYNCHRONOUS_MESSAGES, true),
106106
PollingMetadata::create(MessagingConfiguration::ASYNCHRONOUS_MESSAGES)->withTestingSetup(),
107-
/** We don't want command bus to fail, when command handler is not found, as we want to assert if commands were sent */
108-
TestConfiguration::createWithDefaults()->withFailOnCommandHandlerNotFound(false)
109107
]),
108+
/** We don't want command bus to fail, when command handler is not found, as we want to assert if commands were sent */
109+
testConfiguration: TestConfiguration::createWithDefaults()->withFailOnCommandHandlerNotFound(false)
110110
);
111111
}
112112
}

Workflows/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ecotone_logo_resized.png
2+
S3Storage
3+
!S3Storage/README.md
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Asynchronous Stateless Workflows
2+
3+
This is example of Workflow which is asynchronous and stateless.
4+
All the steps are executed in defined order.
5+
6+
# Example
7+
8+
In this example we will simulate validating image format, resizing it and then uploading to external storage.
9+
The workflow consists of three steps: `validate`, `resize` and `upload`.
10+
We want to execute `validate` step synchronously to stop the action directly if file is not valid.
11+
Then `resize` and `upload` steps will be done asynchronously together.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"type": "ecotone-quickstart",
3+
"license": "MIT",
4+
"authors": [
5+
{
6+
"name": "Dariusz Gafka",
7+
"email": "[email protected]"
8+
}
9+
],
10+
"autoload": {
11+
"psr-4": {
12+
"App\\Workflow\\": "src"
13+
}
14+
},
15+
"autoload-dev": {
16+
"psr-4": {
17+
"Tests\\App\\Workflow\\": "tests"
18+
}
19+
},
20+
"require": {
21+
"ecotone/lite-dbal-starter": "^1.0.1",
22+
"intervention/image": "^3.5.1"
23+
},
24+
"require-dev": {
25+
"phpunit/phpunit": "^9.5",
26+
"doctrine/orm": "^2.0|^3.0",
27+
"wikimedia/composer-merge-plugin": "^2.0"
28+
},
29+
"minimum-stability": "dev",
30+
"prefer-stable": true,
31+
"config": {
32+
"sort-packages": true,
33+
"allow-plugins": {
34+
"wikimedia/composer-merge-plugin": true
35+
}
36+
},
37+
"extra": {
38+
"merge-plugin": {
39+
"include": [
40+
"../../../packages/local_packages.json"
41+
]
42+
}
43+
}
44+
}

0 commit comments

Comments
 (0)