Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
SyncController example
static
::
assertInstanceOf
(
SyncOperation::
class
,
$operations
[
0
]
)
;
$operation
=
$operations
[
0
]
;
static
::
assertSame
(
'delete-mapping',
$operation
->
getKey
(
)
)
;
static
::
assertSame
(
'product',
$operation
->
getEntity
(
)
)
;
static
::
assertSame
(
'delete',
$operation
->
getAction
(
)
)
;
static
::
assertEquals
(
$criteria
,
$operation
->
getCriteria
(
)
)
;
return
new
SyncResult
(
[
]
)
;
}
)
;
$controller
=
new
SyncController
(
$service
,
new
Serializer
(
[
]
,
[
new
JsonEncoder
(
)
]
)
)
;
$controller
->
sync
(
$request
, Context::
createDefaultContext
(
)
)
;
}
}