Skip to content

Commit

Permalink
Form define support callback #1106
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed May 9, 2024
1 parent 19fafe9 commit b38c6b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FormDefinitionWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public function define(Form $form): void
return;
}

if ($this->definition instanceof \Closure) {
$form->register($this->definition);
return;
}

$ref = new \ReflectionObject($this->definition);
$methods = $ref->getMethods();

Expand Down

0 comments on commit b38c6b0

Please sign in to comment.