remove parameter $option on CrudConfiguration::setForm
fix CrudController make template
This commit is contained in:
parent
7614c24012
commit
645ae700d4
|
@ -82,7 +82,7 @@ class CrudConfiguration
|
|||
|
||||
/* -- */
|
||||
|
||||
public function setForm(string $context, string $form, array $options = []): self
|
||||
public function setForm(string $context, string $form): self
|
||||
{
|
||||
$this->forms[$context] = $form;
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ class <?= $class_name; ?> extends CrudController
|
|||
->setPageRoute('delete', 'admin_<?= $route; ?>_delete')
|
||||
->setPageRoute('filter', 'admin_<?= $route; ?>_filter')
|
||||
|
||||
->setForm('edit', Type::class, [])
|
||||
->setForm('edit', Type::class)
|
||||
->setForm('new', Type::class)
|
||||
|
||||
->setView('form', 'admin/<?= $route; ?>_admin/_form.html.twig')
|
||||
|
|
Loading…
Reference in a new issue