Exemplo n.º 1
0
 /**
  * Create a new form instance.
  *
  * @return Form
  */
 public function create()
 {
     $class = $this->getClass();
     $form = new $class();
     $template = $this->templateManager->create();
     $template->setObjectClass($this->postManager->getClass());
     $form->setTemplate($template);
     return $form;
 }
Exemplo n.º 2
0
 /**
  * Create a new form instance.
  *
  * @return Form
  */
 public function create()
 {
     $class = $this->getClass();
     $form = new $class();
     $schema = $this->schemaManager->create();
     $schema->setObjectClass($this->postManager->getClass());
     $form->setSchema($schema);
     return $form;
 }