Splitter
Splitter PHP
The Splitter is endpoint where message can be splitted in several parts and be sent to be processed indepedently.
1
class Shop
2
{
3
#[Splitter(inputChannelName="buyProduct", outputChannelName="buySingleProduct")]
4
public function sendMultipleOrders(array $products) : array
5
{
6
return $products;
7
}
8
9
#[ServiceActivator("buySingleProduct")]
10
public function buyProduct(string $productName) : void
11
{
12
echo "Product {$productName} was bought";
13
}
14
}
Copied!

Possible options

    endpointId - Endpoint identifier
    inputChannnelName - Required option, defines to which channel endpoint should be connected
    outputChannelName - Channel where result of method invocation will be
    requiredInterceptorNames - List of interceptor names, which should intercept the endpoint
Last modified 7mo ago
Export as PDF
Copy link