MenuHelper example

$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
            );
        };

        $container['uniqueid.generator'] = function D$c) {
            return new UniqueIdGenerator(
                SW_PATH . '/recovery/install/data/uniqueid.txt'
            );
        };

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