WhiteOctoberAdminBundle icon indicating copy to clipboard operation
WhiteOctoberAdminBundle copied to clipboard

getFormClosure does not allow passing of form options

Open richsage opened this issue 13 years ago • 0 comments

As per title. There doesn't seem to be a way to pass options to the closure when creating a form. I'll sort out a PR if I get some spare time...

Edit to clarify, I want to be able to pass options through from my custom action, eg:

$getFormClosure = $this->getActionsVars()->get('getFormClosure');
$form = $getFormClosure($data, $this, $this->container, array("my_option" => 123));

richsage avatar Sep 13 '11 15:09 richsage