Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
handleDummyUpdate example
$io
->
section
(
$plugin
->
getLabel
(
)
)
;
$io
->
comment
(
sprintf
(
'Checking system requirements for plugin %s',
$plugin
->
getLabel
(
)
)
)
;
$plugin
=
$this
->
createPluginStruct
(
$plugin
)
;
$isDummy
=
$plugin
->
hasCapabilityDummy
(
)
;
try
{
switch
(
true
)
{
case
$plugin
->
getId
(
)
&&
$isDummy
:
$this
->
handleDummyUpdate
(
$plugin
,
$domain
,
$version
)
;
break
;
case
$isDummy
:
$this
->
handleDummyInstall
(
$plugin
,
$domain
,
$version
)
;
break
;
case
$plugin
->
getId
(
)
:
$this
->
handleLicenceUpdate
(
$plugin
,
$domain
,
$version
,
$token
)
;
break
;
default
: