Comments (3)
zend-hydrator v2.0 requires "zendframework/zend-stdlib": "^2.5.1"
so it allows all above, but zendframework/zend-stdlib
in version 2.7 was added zend-hydrator:^1.0
so it cannot be used and then it falls back to 2.6 where zend-hydrator
didn't existed so it allows it.
I think that's why, but not sure how to fix it.
you could add zend-hydrator:2.1
with has "zendframework/zend-stdlib": "^3.0"
if you really want it, but you will have to fix other dependencies also.
from zend-hydrator.
We've since changed things in 1.1 and 2.1; 2.1 requires zend-stdlib ^3.0, while 1.1 requires zend-stdlib ^2.7. Essentially, you can only update to zend-hydrator v2 if you can update to zend-stdlib v3. This is on purpose.
When separating the hydrator subcomponent out of zend-stdlib, we had to make the situation backwards compatible for existing users. As such, zend-stdlib (in the v2 series) still contains hydrator classes. We updated them to remove implementation and extend those from zend-hydrator. This posed a bit of a problem, however: several classes in zend-stdlib's hydrators were marked final, which meant that in zend-hydrator, they could not be marked final if we wanted the classes in zend-stdlib to extend from them.
(We marked the classes final because they had internal details that should not be overridden. By marking them final, we force end-users to create their own implementations if they really, really need different behavior, saving us the maintentance cost of extension points.)
The sole reason for v2.0.0 was to be able to re-mark those classes as final — and that has the side effect of making it incompatible with v2 versions of zend-stdlib if you are using the hydrators from zend-stdlib.
zend-stdlib v3 removes the hydrator subcomponent completely, making it compatible with zend-hydrator v2 again. As such, we marked zend-hydrator v2.1 as depending on zend-stdlib v3.
We're just about done with migration of the various components to make them forwards compatible with zend-stdlib v3, among others. Once that happens, you should be able to update.
from zend-hydrator.
Thanks for that detailed explaination. I will be staying on v1 for now. Thanks for your help and work with zend framework.
from zend-hydrator.
Related Issues (20)
- Extending from ClassMethods not possible HOT 12
- CamelCaseToUnderscoreFilter HOT 2
- FilterComposite issue with Swoole 4.4.0 and higher HOT 2
- Doubled first row when HydratingResultSet use buffer() on Oracle database HOT 2
- possible BC break HOT 4
- zend-hydrator requires package zend-servicemanager HOT 2
- Aggregate hydrator EventManager via factory overwritten by Mvc\ServiceManagerConfig initializer HOT 2
- Strategy name in conjunction with NamingStrategy HOT 6
- is and has are not extracted like get in ClassMethods hydrator HOT 6
- ClassMethods throws exception on missing setter when hydrate object HOT 3
- Hydrator $underscoreSeparatedKeys -> Umlauts not working HOT 7
- AggregateHydrator's EventManager overwritten due to EventManagerAwareInterface HOT 1
- Unexpected behaviour when hydrating objects from Form inputs and from Database HOT 7
- Cannot edit/remove items from collections
- Mili/microseconds problem with DateTimeFormatterStrategy HOT 4
- undeclared dependency on zend-servicemanager HOT 3
- DateTimeImmutableFormatterStrategy HOT 3
- `MapNamingStrategy` constructor is `public` even if dedicated named constructors exist HOT 4
- This part break apigility admin HOT 1
- No issue, just a silly question... HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zend-hydrator.