Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
findSqsReceivedStamp example
$this
->connection->
delete
(
$sqsEnvelope
[
'id'
]
)
;
throw
$exception
;
}
yield
$envelope
->
with
(
new
AmazonSqsReceivedStamp
(
$sqsEnvelope
[
'id'
]
)
)
;
}
public
function
ack
(
Envelope
$envelope
)
: void
{
try
{
$this
->connection->
delete
(
$this
->
findSqsReceivedStamp
(
$envelope
)
->
getId
(
)
)
;
}
catch
(
HttpException
$e
)
{
throw
new
TransportException
(
$e
->
getMessage
(
)
, 0,
$e
)
;
}
}
public
function
reject
(
Envelope
$envelope
)
: void
{
try
{
$this
->connection->
delete
(
$this
->
findSqsReceivedStamp
(
$envelope
)
->
getId
(
)
)
;
}
catch
(
HttpException
$e
)
{
throw
new
TransportException
(
$e
->
getMessage
(
)
, 0,
$e
)
;
}