-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZF3 Compatibility #642
Comments
+1 |
+1 |
1 similar comment
+1 |
Actually it looks like 1.4.4 has been updated for the new ServiceManger already. It was issues with how my code was overriding ZfcUser classes that caused an issue I assumed was ZF3 incompatibility. |
@Rockstar04 I could be wrong, but I don't think it's that simple. ZfcUser requires ZfcBase which in turn requires zend-mvc ~2.1. If one tries to use ZfcUser with zend-mvc 3, then there's a conflict. Now...there may be a way around this that I don't know about. If so, please enlighten me. Otherwise, if my understanding is correct, then ZfcBase's dependencies need to be updated or, better yet, ZfcBase should be dropped as a dependency for ZfcUser....which is the goal of #560. If I'm right, please re-open. If not, please help me to use zend-mvc 3 correctly. I'd appreciate it. :-) |
@telkins You are right, I was looking over quite a few of my projects dependencies yesterday and forgot about the tie to zend-mvc, I was just looking over the version history here and got ahead of myself. |
@Rockstar04 👍 Nice...! The dependencies can be a bit tricky, sometimes. I'm hoping that #560 can be resolved quickly since there doesn't appear to be any need for it any longer. Once that's done, I think the task becomes relatively straightforward. Let's hope so, anyway. :-) |
I'm doing some changes on the dev-master to add support for ZF3. |
@stijnhau Can you do it in 1.x, without BC breaks? |
@Danielss89 I will first do the dev-master because that is the one i'm using ;) and i don't have that much time. |
@stijnhau Any ETA...? |
@telkins I hope to finish dev-master this weekend |
https://github.com/stijnhau/ZfcUser/tree/ZF3 For people who wants to help also ;) |
@stijnhau create a PR from that |
@svycka
|
you can do changes on PR so why ou cant create it now and do your changes later? it would be easier to see what you changed and comment what you did wrong, suggest what to fix and so on |
@svycka |
@stijnhau I think that saving both SMv2 and SMv3 compaibility is not a good idea. |
@oprokidnev |
My 2 cents: I think both SMv2 and SMv3 should be supported. Otherwise, there need to be separate versions of ZfcUser. While I would prefer to move ahead and stay at the cutting edge, having only support for the latest and greatest, there are some situations where it's not possible/realistic. The ZF developers have provided a way to support both versions simultaneously for a reason. It's because not everyone will be willing/able to move forward. Also, keep in mind that a single dependency can potentially be a single factor in forcing one forward or keeping one back. I've gone through the work of upgrading to SMv3 and found that a single dependency, like ZfcUser, will hold me back. Of course, if ZfcUser now suddenly supports only SMv3, then those who are not ready to move ahead will be forced to...or they will miss out on further ZfcUser fixes/features. So, supporting both is a good step forward...at least if there's only going to be one version. If it's a matter of how to move ahead with 1.x, then support for both is the only realistic/pragmatic solution. If it's a matter of having a ZfcUser solution that only supports SMv3, then I think that means an introduction of a 2.x version is necessary, since it will no longer be backward compatible. My vote for now: bridge the gap and support both. It's a relatively simple fix and any disadvantages (that I can think of) are negligible. |
Yes telkins that is the reason i wan't to have SMv2 and SMv3 support. |
Havin major issue at the moment with refactoring. |
@stijnhau you could probably add a Composer script that checks the installed version of My 2 cents though would be to explictly declare ZfcUser 1.x as being for ZF2 and do a ZfcUser 2.x release for ZF3. Last time I was actively using ZfcUser I advocated for v2.x to be split, putting MVC integration into a separate package and so allowing easier reuse of the ZfcUser "core" in other contexts (eg: Apigility). That would also help in this case: MVC 2.x and MVC 3.x support could be provided through separate packages, if necessary. |
After more thought, In the interim I suggest this: we release a ZfcUser v2.x that supports only (that "we" seems to be just Daniel now, tbh, so of course it would be up to him if he wants to expend that maintenance effort) |
Okez you are right a change i did earlier already requires MVCv3 and php 5.6 so i've updated the composer fiole to request the new changes. |
I will do a reply tomorrow evening on what i decide with branches and BC. |
@stijnhau You've just mention why (zend-mvc-* repos).
Saving BC would make module development harder. Module is stable enought for now and new version of module should only be compatible with latest dev options |
@oprokidnev An update on the state of the change: |
I decided to go the following way: I have vacation next week, and will update Github accordingly. Feel free to create PR's :) |
I propse 1 change extra for zfcuser 2.0 |
@stijnhau No, that is too big a BC. I want BC breaks to be as few and small as possible. |
Agreed but it will be a new major version. |
If you have an existing app and want's to upgrade to ZF3, you want as minimal changes as possible. Changing user_id to id will require you to change a lot of your entities with an association to the user entity, and you will have to change your database also, which can be a bit difficult. The "new" version of ZfcUser, is not meant for upgrading, but for new project, so there it is fine to do the change. |
@Danielss89 You can try my fork as a base. Has reached some forms to be working, but currently has no time for this. BC breaks with zf2. |
Hi All I've finally had some more time to work on this(it required more work than i first thought). Anyway, i pushed a |
@Danielss89 |
@Danielss89 here's my feedback:
I haven't updated any of my projects to use ZF3 components yet (:disappointed:) so I can't actually test these changes beyond code review and running the tests. |
I have doine some work for the dev master branch. |
There is an issue with extending forms via event (https://github.com/ZF-Commons/ZfcUser/wiki/How-to-modify-the-form-objects-used-by-ZfcUser) in 2.x-dev. |
When you're ready Zfcuser version 2? |
Go ! |
Any news about ZF3 support? |
no i'm sorry |
There are still some problems with the PR, so i can't merge yet. Unfortunately i'm extremely busy right now, so i don't have the time to fix at this moment. Please feel free to create PR's agains mine, and help fix the bugs. |
@Danielss89 |
@stijnhau Well, i know there are some problems with the event stuff, but if you read the backlog of this issue, then it explains it better. |
Please help, I am install stijnhau/ZfcUser from git hub and when I try to install zf-commons/zfc-user-doctrine-orm from composer I have an error:
What me do? |
any update on this? my module depends on this to allow my module to upgrade to zend framework 3 |
silent |
Me too - my module depends on this, any update? |
I tested the 2 x branch and it is working good with ZF3 for me. Don't see any reason not to use it. Just use "composer require zf-commons/zfc-user 2.x-dev" |
@rarog AFAIK work hasn't progressed far on ZfcUser 2.x, so it's still largely the same as 1.x. When/if 2.x development picks up steam and BC breaks are introduced your code will no longer work. If you must use the 2.x branch, pin to a specific commit rather than just |
@adamlundrigan Of course, this is what I did and what I always do, if I have to rely on some instable branch. |
ZF3 support released in 3.x branch :) |
ZF3 has officially been released: https://framework.zend.com/blog/2016-06-28-zend-framework-3.html
The text was updated successfully, but these errors were encountered: