Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit dd8524c

Browse files
committed
Pass second argument to injectFactory()
- `injectFactory()` is intended as an initializer, and, as such, should expect two arguments. zend-form in v2.7 corrects this, making both arguments required, which exposed the fact that the zend-mvc `FormAnnotationBuilderFactory` was calling it incorrectly.
1 parent 196ec0f commit dd8524c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/FormAnnotationBuilderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function createService(ServiceLocatorInterface $serviceLocator)
2929
//setup a form factory which can use custom form elements
3030
$annotationBuilder = new AnnotationBuilder();
3131
$formElementManager = $serviceLocator->get('FormElementManager');
32-
$formElementManager->injectFactory($annotationBuilder);
32+
$formElementManager->injectFactory($annotationBuilder, $serviceLocator);
3333

3434
$config = $serviceLocator->get('Config');
3535
if (isset($config['form_annotation_builder'])) {

0 commit comments

Comments
 (0)