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

Commit badb5bd

Browse files
committed
Merge branch 'hotfix/annotation-builder' into release-2.7
Close #235
2 parents 1095058 + 0f143d6 commit badb5bd

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 2.7.12 - 2017-04-27
6+
7+
### Added
8+
9+
- Nothing.
10+
11+
### Deprecated
12+
13+
- Nothing.
14+
15+
### Removed
16+
17+
- Nothing.
18+
19+
### Fixed
20+
21+
- [#235](https://github.com/zendframework/zend-mvc/pull/235) fixes
22+
`FormAnnotationBuilderFactory::injectFactory()` to pass the correct
23+
arguments to the plugin manager's `injectFactory()` initializer when running
24+
under zend-servicemanager v2.
25+
526
## 2.7.11 - 2017-04-27
627

728
### Added

src/Service/FormAnnotationBuilderFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private function injectFactory(
9696
AnnotationBuilder $annotationBuilder
9797
) {
9898
if ($formElementManager instanceof FormElementManagerV2Polyfill) {
99-
$formElementManager->injectFactory($annotationBuilder, $container);
99+
$formElementManager->injectFactory($annotationBuilder, $formElementManager);
100100
return;
101101
}
102102

test/Service/FormAnnotationBuilderFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testInjectFactoryInCorrectOrderV2()
6262
->method('injectFactory')
6363
->with($this->callback(function ($annotationBuilder) {
6464
return $annotationBuilder instanceof AnnotationBuilder;
65-
}), $serviceLocator);
65+
}), $mockElementManager);
6666

6767
$sut = new FormAnnotationBuilderFactory();
6868
$sut->createService($serviceLocator);

0 commit comments

Comments
 (0)