-
-
Notifications
You must be signed in to change notification settings - Fork 21
Event routing behavior #479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
06e0ad1
add priority test
jlabedo 500483c
Bus routing selector
jlabedo 7cca7e4
introduce better separation with BusRoutingConfigBuilder
jlabedo 9b5b8aa
wip
jlabedo 3f34db3
wip
jlabedo 153b3b2
save - missing aggregate factory methods handling
jlabedo a4cad61
cleaning
jlabedo 9c946c9
cleaning
jlabedo b315714
wip
jlabedo d2c8953
wip
jlabedo 417171d
main tests passing
jlabedo 0f35426
Scheduling the same command multiple times for multiple handlers
unixslayer 2b8260e
es tests passing + same logging behaviour
jlabedo 640806e
fix es test with infinite loop
jlabedo 7ac20af
fix dbal auto incremented id test
jlabedo 7eb3b18
distribution module
jlabedo f5653ba
cleaning
jlabedo 26bf02c
fix test
jlabedo b5233b6
cleaning
jlabedo 12dcc24
fix amqp distributed bus
jlabedo 4359089
refactor
jlabedo 43d8f1f
cleaning
jlabedo 8af30a0
fix phpstan
jlabedo 6204396
cleaning
jlabedo 8c2a782
fix interceptors for aggregates
jlabedo e1e14ac
fix multitenant test
jlabedo bec94c0
Merge branch 'main' into event-routing
jlabedo 7495e99
fix aggregate output channel
jlabedo ed5640c
rename test
jlabedo 5786a0b
cleaning
jlabedo 4f50d2b
Merge branch 'main' into event-routing
jlabedo fe93fcf
use same routing logic for aggregate query handlers
jlabedo 1a867ca
Merge remote-tracking branch 'unixslayer/multiple-async-handlers-for-…
jlabedo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
26 changes: 26 additions & 0 deletions
26
packages/Ecotone/src/Messaging/Handler/Router/RouteToChannelResolver.php
This file contains hidden or 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,26 @@ | ||
| <?php | ||
| /* | ||
| * licence Apache-2.0 | ||
| */ | ||
| declare(strict_types=1); | ||
|
|
||
| namespace Ecotone\Messaging\Handler\Router; | ||
|
|
||
| use Ecotone\Messaging\Handler\ChannelResolver; | ||
| use Ecotone\Messaging\Handler\MessageProcessor; | ||
| use Ecotone\Messaging\Handler\Processor\SendToChannelProcessor; | ||
|
|
||
| class RouteToChannelResolver implements RouteResolver | ||
| { | ||
| public function __construct( | ||
| public ChannelResolver $channelResolver | ||
| ) | ||
| { | ||
| } | ||
|
|
||
| public function resolve(string $routeName): MessageProcessor | ||
| { | ||
| $channel = $this->channelResolver->resolve($routeName); | ||
| return new SendToChannelProcessor($channel); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.