Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
findAmqpStamp example
$this
->
rejectAmqpEnvelope
(
$amqpEnvelope
,
$queueName
)
;
throw
$exception
;
}
yield
$envelope
->
with
(
new
AmqpReceivedStamp
(
$amqpEnvelope
,
$queueName
)
)
;
}
public
function
ack
(
Envelope
$envelope
)
: void
{
try
{
$stamp
=
$this
->
findAmqpStamp
(
$envelope
)
;
$this
->connection->
ack
(
$stamp
->
getAmqpEnvelope
(
)
,
$stamp
->
getQueueName
(
)
)
;
}
catch
(
\AMQPException
$exception
)
{
throw
new
TransportException
(
$exception
->
getMessage
(
)
, 0,
$exception
)
;
}
}
public
function
reject
(
Envelope
$envelope
)
: void
{