Exemplo n.º 1
0
 public function templateData()
 {
     $request = $this->getRequest();
     $version = $request->get('version');
     $css = new EditedCssFile($request->get('file'), $version);
     return new JSONResponse($css->toArray());
 }
Exemplo n.º 2
0
 private function getForm(EditedCssFile $css)
 {
     $form = new Form($this->getValidator('cssFile', $this->request));
     $form->setData($css->toArray());
     $form->set('code', '');
     $form->set('fileName', $css->getFileName());
     $form->set('file', $css->getTheme());
     return $form;
 }