handleLicenceUpdate example

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) {
            $io->error('An error occured: ' . $e->getMessage());
            exit(1);
        }

        
Home | Imprint | This part of the site doesn't use cookies.