Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createEnvelopeFromData example
return
[
]
;
}
catch
(
DBALException
$exception
)
{
throw
new
TransportException
(
$exception
->
getMessage
(
)
, 0,
$exception
)
;
}
if
(
null ===
$doctrineEnvelope
)
{
return
[
]
;
}
return
[
$this
->
createEnvelopeFromData
(
$doctrineEnvelope
)
]
;
}
public
function
ack
(
Envelope
$envelope
)
: void
{
try
{
$this
->connection->
ack
(
$this
->
findDoctrineReceivedStamp
(
$envelope
)
->
getId
(
)
)
;
}
catch
(
DBALException
$exception
)
{
throw
new
TransportException
(
$exception
->
getMessage
(
)
, 0,
$exception
)
;
}
}