/** * Deploy CSS * * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function deployCss(\Symfony\Component\Console\Output\OutputInterface $output) { $themeLocalePairs = $this->storeView->retrieveThemeLocalePairs(); foreach ($themeLocalePairs as $themeLocalePair) { $theme = $themeLocalePair['theme'] ?: self::DEFAULT_THEME; $cmd = $this->functionCallPath . 'dev:css:deploy less' . ' --' . CssDeployCommand::THEME_OPTION . '="' . $theme . '"' . ' --' . CssDeployCommand::LOCALE_OPTION . '="' . $themeLocalePair['locale'] . '"'; /** * @todo build a solution that does not depend on exec */ $execOutput = $this->shell->execute($cmd); $output->writeln($execOutput); } $output->writeln('CSS deployment complete'); }