From 645ae700d49d9e1b6ccf2de492f3cd41126ab3ec Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 4 Oct 2023 13:54:37 +0200 Subject: [PATCH] remove parameter $option on CrudConfiguration::setForm fix CrudController make template --- src/core/Crud/CrudConfiguration.php | 2 +- src/core/Resources/maker/controller/CrudController.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Crud/CrudConfiguration.php b/src/core/Crud/CrudConfiguration.php index 534ff9c..664c0a6 100644 --- a/src/core/Crud/CrudConfiguration.php +++ b/src/core/Crud/CrudConfiguration.php @@ -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; diff --git a/src/core/Resources/maker/controller/CrudController.tpl.php b/src/core/Resources/maker/controller/CrudController.tpl.php index 7df44fd..f4404b4 100644 --- a/src/core/Resources/maker/controller/CrudController.tpl.php +++ b/src/core/Resources/maker/controller/CrudController.tpl.php @@ -101,7 +101,7 @@ class extends CrudController ->setPageRoute('delete', 'admin__delete') ->setPageRoute('filter', 'admin__filter') - ->setForm('edit', Type::class, []) + ->setForm('edit', Type::class) ->setForm('new', Type::class) ->setView('form', 'admin/_admin/_form.html.twig')