Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
resolveWrite example
$payload
=
$this
->commandExtractor->
normalize
(
$definition
,
$operation
->
getPayload
(
)
,
$parameters
)
;
$this
->gateway->
prefetchExistences
(
$parameters
)
;
$key
=
$operation
->
getKey
(
)
;
foreach
(
$payload
as
$index
=>
$row
)
{
$parameters
->
setPath
(
'/' .
$key
. '/' .
$index
)
;
$context
->
resetPaths
(
)
;
$this
->commandExtractor->
extract
(
$row
,
$parameters
)
;
}
$writes
[
]
=
$this
->factory->
resolveWrite
(
$definition
,
$payload
)
;
}
}
$context
->
getExceptions
(
)
->
tryToThrow
(
)
;
$this
->gateway->
execute
(
$commandQueue
->
getCommandsInOrder
(
)
,
$context
)
;
$result
=
$this
->factory->
build
(
$commandQueue
)
;
$notFound
=
array_merge_recursive
(
...
$notFound
)
;