CodeExplorer handleDummyInstall example
$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:
$this->
handleLicenceInstall($plugin,
$domain,
$version,
$token);
break;
} } catch (Exception
$e) {