PHP code example of leberknecht / amqp-rpc-transporter-bundle
1. Go to this page and download the library: Download leberknecht/amqp-rpc-transporter-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
leberknecht / amqp-rpc-transporter-bundle example snippets
// send
$rpcCallMessage = new RpcCallMessage();
$envelope = $this->messageBus->dispatch($rpcCallMessage);
/** @var ResponseStamp $response */
$response = $envelope->last(ResponseStamp::class);
$result = $response->getResult();
final public function __invoke(RpcCallMessage $message): void
{
[...]
return 42;
}