/** * Deploy static content * * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void * @throws \Exception */ protected function deployStaticContent(\Symfony\Component\Console\Output\OutputInterface $output) { $output->writeln('Static content deployment start'); $cmd = $this->functionCallPath . 'setup:static-content:deploy ' . implode(' ', $this->storeView->retrieveLocales()); /** * @todo build a solution that does not depend on exec */ $execOutput = $this->shell->execute($cmd); $output->writeln($execOutput); $output->writeln('Static content deployment complete'); }
/** * Get used store and admin user locales * * @return []string */ private function getUsedLocales() { $usedLocales = array_merge($this->storeView->retrieveLocales(), $this->getAdminUserInterfaceLocales()); return array_unique($usedLocales); }