/** * Import theme screen. * * @param Symfony\Component\HttpFoundation\Request $request * @param int $id * * @return Symfony\Component\HttpFoundation\Response */ public function importThemeAction(Request $request, $id) { $result = $this->getService('em')->find('RZ\\Roadiz\\Core\\Entities\\Theme', $id); $data = ThemeInstaller::getThemeInformation($result->getClassName()); $this->assignation = array_merge($this->assignation, $data["importFiles"]); $this->assignation["themeId"] = $id; return $this->render('steps/importTheme.html.twig', $this->assignation); }
/** * Import theme screen. * * @param Symfony\Component\HttpFoundation\Request $request * @param int $id * * @return Symfony\Component\HttpFoundation\Response */ public function importAction(Request $request, $id) { $this->validateAccessForRole('ROLE_ACCESS_THEMES'); $result = $this->getService('em')->find('RZ\\Roadiz\\Core\\Entities\\Theme', $id); $data = ThemeInstaller::getThemeInformation($result->getClassName()); $this->assignation = array_merge($this->assignation, $data["importFiles"]); $this->assignation["themeId"] = $id; return $this->render('themes/import.html.twig', $this->assignation); }