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

Commit 0e35eb0

Browse files
committed
Merge branch 'hotfix/7672' into develop
Forward port #69
2 parents 85d6cd7 + 853e4b2 commit 0e35eb0

File tree

4 files changed

+44
-5
lines changed

4 files changed

+44
-5
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ matrix:
2323
- php: 7
2424
- php: hhvm
2525
allow_failures:
26-
- php: 7
2726
- php: hhvm
2827

2928
notifications:

CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ All notable changes to this project will be documented in this file, in reverse
9191
factories by default. You can force it to do so by passing an optional
9292
second argument, a boolean flag, with a value of boolean true.
9393

94-
## 2.6.1 - TBD
94+
## 2.6.1 - 2016-02-16
9595

9696
### Added
9797

@@ -107,7 +107,17 @@ All notable changes to this project will be documented in this file, in reverse
107107

108108
### Fixed
109109

110-
- Nothing.
110+
- [#69](https://github.com/zendframework/zend-mvc/pull/69) largely reverts
111+
[#30](https://github.com/zendframework/zend-mvc/pull/30), having the component
112+
utilize the `HydratorPluginManager` from zend-stdlib 2.7.5. This was done to
113+
provide backwards compatibility; while zend-stdlib Hydrator types can be used
114+
in place of zend-hydrator types, the reverse is not true.
115+
116+
You can make your code forwards-compatible with version 3, where the
117+
`HydratorPluginManager` will be pulled from zend-hydrator, by updating your
118+
typehints to use the zend-hydrator classes instead of those from zend-stdlib;
119+
the instances returned from the zend-stdlib `HydratorPluginManager`, because
120+
they extend those from zend-hydrator, remain compatible.
111121

112122
## 2.6.0 - 2015-09-22
113123

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
}
1414
},
1515
"require": {
16-
"php": ">=5.5",
16+
"php": "^5.5 || ^7.0",
1717
"zendframework/zend-eventmanager": "dev-develop as 2.7.0",
1818
"zendframework/zend-servicemanager": "dev-develop as 2.6.0",
1919
"zendframework/zend-hydrator": "~1.0",
2020
"zendframework/zend-form": "~2.6",
21-
"zendframework/zend-stdlib": "~2.7",
21+
"zendframework/zend-stdlib": "^2.7.5",
2222
"zendframework/zend-psr7bridge": "^0.2",
2323
"container-interop/container-interop": "^1.1"
2424
},
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* Zend Framework (http://framework.zend.com/)
4+
*
5+
* @link http://github.com/zendframework/zf2 for the canonical source repository
6+
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7+
* @license http://framework.zend.com/license/new-bsd New BSD License
8+
*/
9+
10+
namespace ZendTest\Mvc\Service;
11+
12+
use Interop\Container\ContainerInterface;
13+
use PHPUnit_Framework_TestCase as TestCase;
14+
use Zend\Hydrator\HydratorPluginManager;
15+
use Zend\Mvc\Service\HydratorManagerFactory;
16+
17+
class HydratorManagerFactoryTest extends TestCase
18+
{
19+
public function setUp()
20+
{
21+
$this->factory = new HydratorManagerFactory();
22+
$this->services = $this->prophesize(ContainerInterface::class);
23+
}
24+
25+
public function testFactoryReturnsZendHydratorManagerInstance()
26+
{
27+
$hydrators = $this->factory->__invoke($this->services->reveal(), null);
28+
$this->assertInstanceOf(HydratorPluginManager::class, $hydrators);
29+
}
30+
}

0 commit comments

Comments
 (0)