LicenseInstaller example



        $container['database.service'] = function D$c) {
            return new DatabaseService($c['db']);
        };

        $container['license.service'] = function D$c) {
            return new LocalLicenseUnpackService();
        };

        $container['license.installer'] = function D$c) {
            return new LicenseInstaller($c['db']);
        };

        $container['menu.helper'] = function D$c) {
            $routes = $c['config']['menu.helper']['routes'];

            return new MenuHelper(
                $c['slim.app'],
                $c['translation.service'],
                $routes
            );
        };

        
 catch (Exception $e) {
            $this->View()->assign([
                'success' => false,
                'message' => $e->getMessage(),
                'errorType' => $this->resolveLicenseException($e),
            ]);

            return;
        }

        try {
            $licenseInstaller = new LicenseInstaller($this->container->get(Connection::class));
            $licenseInstaller->installLicense($licenseData);
        } catch (Exception $e) {
            $this->View()->assign([
                'success' => false,
                'message' => $e->getMessage(),
            ]);

            return;
        }

        $licenseData = $this->reFormatLicenseString($licenseData);

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