Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createPluginStruct example
if
(
!
$plugin
)
{
$io
->
error
(
sprintf
(
'Plugin %s not found',
$technicalName
)
)
;
return
1;
}
$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
)
;