File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class Import
3131 public const LAMINAS_FORM_ELEMENT_CHECKBOX = 'Laminas \\Form \\Element \\Checkbox ' ;
3232 public const LAMINAS_FORM_ELEMENT_CSRF = 'Laminas \\Form \\Element \\Csrf ' ;
3333 public const LAMINAS_FORM_ELEMENT_SUBMIT = 'Laminas \\Form \\Element \\Submit ' ;
34+ public const LAMINAS_FORM_ELEMENTFACTORY = 'Laminas \\Form \\ElementFactory ' ;
3435 public const LAMINAS_FORM_EXCEPTION_EXCEPTIONINTERFACE = 'Laminas \\Form \\Exception \\ExceptionInterface ' ;
3536 public const LAMINAS_INPUTFILTER_INPUT = 'Laminas \\InputFilter \\Input ' ;
3637 public const LAMINAS_SESSION_CONTAINER = 'Laminas \\Session \\Container ' ;
Original file line number Diff line number Diff line change @@ -181,11 +181,13 @@ public function render(
181181 if (! $ form ->exists ()) {
182182 continue ;
183183 }
184- $ class ->useClass ($ form ->getComponent ()->getFqcn ());
184+ $ class
185+ ->useClass ($ form ->getComponent ()->getFqcn ())
186+ ->useClass (Import::LAMINAS_FORM_ELEMENTFACTORY );
185187
186188 $ getDependencies ->appendBody (
187189 sprintf (
188- '%s => AttributedServiceFactory ::class, ' ,
190+ '%s => ElementFactory ::class, ' ,
189191 $ form ->getComponent ()->getClassString ()
190192 ),
191193 16
You can’t perform that action at this time.
0 commit comments