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

Commit ecdc9af

Browse files
committed
Merge branch 'hotfix/122'
Close #122
2 parents 53a9e78 + 30b6d9f commit ecdc9af

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ All notable changes to this project will be documented in this file, in reverse
1818

1919
### Fixed
2020

21-
- Nothing.
21+
- [#122](https://github.com/zendframework/zend-mvc/pull/122) fixes the
22+
`FormAnnotationBuilderFactory` to use the container's `get()` method instead
23+
of `build()` to retrieve the event manager instance.
2224

2325
## 2.7.6 - 2016-04-06
2426

src/Service/FormAnnotationBuilderFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function __invoke(ContainerInterface $container, $name, array $options =
3131
{
3232
//setup a form factory which can use custom form elements
3333
$annotationBuilder = new AnnotationBuilder();
34-
$eventManager = $container->build('EventManager');
35-
$annotationBuilder->setEventManager($ventManager);
34+
$eventManager = $container->get('EventManager');
35+
$annotationBuilder->setEventManager($eventManager);
3636

3737
$formElementManager = $container->get('FormElementManager');
3838
$formElementManager->injectFactory($container, $annotationBuilder);

0 commit comments

Comments
 (0)