dumpConfiguration example

$shops = $repository->getShopsWithThemes()->getResult();
        $compiler = $this->container->get('theme_compiler');
        $rootDir = $this->container->getParameter('shopware.app.rootDir');

        if (!\is_string($rootDir)) {
            throw new RuntimeException('Parameter shopware.app.rootDir has to be an string');
        }

        /** @var Shop $shop */
        foreach ($shops as $shop) {
            $configuration = $compiler->getThemeConfiguration($shop);
            $file = $this->dumpConfiguration($shop$configuration);
            $file = str_replace($rootDir, '', $file);
            $output->writeln('file: ' . $file . ' generated');
        }

        return 0;
    }

    /** * @throws Exception * * @return string */
Home | Imprint | This part of the site doesn't use cookies.