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

Commit

Permalink
Pass second argument to injectFactory()
Browse files Browse the repository at this point in the history
- `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.
  • Loading branch information
weierophinney committed Feb 23, 2016
1 parent 196ec0f commit dd8524c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/FormAnnotationBuilderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function createService(ServiceLocatorInterface $serviceLocator)
//setup a form factory which can use custom form elements
$annotationBuilder = new AnnotationBuilder();
$formElementManager = $serviceLocator->get('FormElementManager');
$formElementManager->injectFactory($annotationBuilder);
$formElementManager->injectFactory($annotationBuilder, $serviceLocator);

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

0 comments on commit dd8524c

Please sign in to comment.