You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see a coherent solution which doesn't involve overhauling how stuff works.
If you move towards constructor injection this would break many factories people wrote.
Zend\ServiceManager\Initializer\InitializerInterface does not support passing options. If it did you could move the setOptions() logic to there with little BC break.
(DelgatorFactoryInterface does support passing options but you'd have to register it for every element).
How can you initialize if you don't have the options?
This is closely related to zendframework/zend-form#138
Code to reproduce the issue
Expected results
setOptions
init
setOptions
init
Actual results
init
setOptions
setOptions
init
Workaround
There are several different workarounds:
$this->add()
in a fieldset. Write factories which initialize elements and fieldsets.Proper fix
I don't see a coherent solution which doesn't involve overhauling how stuff works.
If you move towards constructor injection this would break many factories people wrote.
Zend\ServiceManager\Initializer\InitializerInterface does not support passing options. If it did you could move the setOptions() logic to there with little BC break.
(DelgatorFactoryInterface does support passing options but you'd have to register it for every element).
Originally posted by @Erikvv at zendframework/zend-form#221
The text was updated successfully, but these errors were encountered: