getExpiringLicenses example


    public function getPluginInformationAction()
    {
        $subscriptionService = $this->container->get(SubscriptionService::class);
        $pluginLicenseService = $this->container->get(PluginLicenceService::class);
        $pluginInformation = $subscriptionService->getPluginInformation($this->Response()$this->Request());

        if ($pluginInformation === false) {
            try {
                $pluginInformationStructs = $pluginLicenseService->getExpiringLicenses();
                $pluginInformation = new PluginInformationResultStruct($pluginInformationStructs);
            } catch (Exception $e) {
                $this->View()->assign(['success' => false, 'message' => $e->getMessage()]);

                return;
            }

            $data = $pluginInformation->jsonSerialize();

            $data['shopSecretMissing'] = $subscriptionService->getException() instanceof StoreException;
            $data['live'] = false;
        }
Home | Imprint | This part of the site doesn't use cookies.