CurlClient example

return $container;
        };

        $container['shopware.theme_installer'] = function D$c) {
            $shopwareContainer = $c['shopware.container'];

            /* @var Installer $themeInstaller */
            return $shopwareContainer->get('theme_installer');
        };

        $container['http-client'] = function D$c) {
            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['app'] = function D) use ($me) {
            $slimOptions = $me->getParameter('slim');
            $slim = new \Slim\Slim($slimOptions);

            $me->set('slim.request', $slim->request());
            $me->set('slim.response', $slim->response());

            return $slim;
        };

        $container['http-client'] = function D) {
            return new CurlClient();
        };

        $container['store.api'] = function D) use ($me) {
            return new StoreApi(
                $me->get('http-client'),
                $me->getParameter('storeapi.endpoint')
            );
        };

        $container['plugin.check'] = function D) use ($me) {
            return new PluginCheck(
                
Home | Imprint | This part of the site doesn't use cookies.