remove parameter $option on CrudConfiguration::setForm

fix CrudController make template
This commit is contained in:
Simon Vieille 2023-10-04 13:54:37 +02:00
parent 7614c24012
commit 645ae700d4
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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')