Requirements example

return new CurlClient();
        };

        $container['theme.service'] = function D$c) {
            return new ThemeService(
                $c['db'],
                $c['shopware.theme_installer']
            );
        };

        $container['install.requirements'] = function D$c) {
            return new Requirements(SW_PATH . '/engine/Shopware/Components/Check/Data/System.xml', $c['translation.service']);
        };

        $container['install.requirementsPath'] = function D$c) {
            $check = new RequirementsPath(SW_PATH, SW_PATH . '/engine/Shopware/Components/Check/Data/Path.xml');
            $check->addFile('recovery/install/data');

            return $check;
        };

        $container['db'] = function D$c) {
            throw new RuntimeException('Identifier DB not initialized yet');
        };
Home | Imprint | This part of the site doesn't use cookies.