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

Commit

Permalink
Merge branch 'hotfix/annotation-builder' into release-2.7
Browse files Browse the repository at this point in the history
Close #235
  • Loading branch information
weierophinney committed Apr 27, 2017
2 parents 1095058 + 0f143d6 commit badb5bd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@

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

## 2.7.12 - 2017-04-27

### Added

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- [#235](https://github.com/zendframework/zend-mvc/pull/235) fixes
`FormAnnotationBuilderFactory::injectFactory()` to pass the correct
arguments to the plugin manager's `injectFactory()` initializer when running
under zend-servicemanager v2.

## 2.7.11 - 2017-04-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Service/FormAnnotationBuilderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private function injectFactory(
AnnotationBuilder $annotationBuilder
) {
if ($formElementManager instanceof FormElementManagerV2Polyfill) {
$formElementManager->injectFactory($annotationBuilder, $container);
$formElementManager->injectFactory($annotationBuilder, $formElementManager);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/Service/FormAnnotationBuilderFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function testInjectFactoryInCorrectOrderV2()
->method('injectFactory')
->with($this->callback(function ($annotationBuilder) {
return $annotationBuilder instanceof AnnotationBuilder;
}), $serviceLocator);
}), $mockElementManager);

$sut = new FormAnnotationBuilderFactory();
$sut->createService($serviceLocator);
Expand Down

0 comments on commit badb5bd

Please sign in to comment.