-
Notifications
You must be signed in to change notification settings - Fork 136
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
Migrate to PSR-2 #53
Migrate to PSR-2 #53
Conversation
Wow, awesome work! Thanks! Personally, I'd import root classes (e.g. I'd like to see this merged asap. A rebase on master should help resolve the conflicts. It would have to be a new major though, as it is a BC break. What I would suggest is:
Thoughts @jaimeperez /cc @thijskh @relaxnow? |
👍 |
That is indeed some very impressive job! I pretty much agree with @DRvanR here, and this is something I would really like to see in SimpleSAMLphp 2.0. It's a pretty big change, though, so I think we need to be very careful, and of course fix the conflicts first. |
👍 Conflict needs to be resolved. Could you do that @cb8 ? Also:
I would very much like to, but we have simplesamlphp/simplesamlphp as a dependency and their stable version depends on "~0.3". So I can't use newer versions in EB unless I tag a new 0.* release. SSP2 will fix that when it is released, also our need for using SSP (Profile) is going away so that will resolve itself shortly. |
You can, simply use inline aliasing as we do in the 5.x branch. Having two release branches releasing the exact same version should be stopped sooner rather than later 😉
I think that should be considered separate from this PR and should not be blocking, also the reason why I suggested to move to a new major. This allows fixes to be applied to both releases, while not impeding the separate development of this library. I'd really like to make a push forward here. We indeed should take care not to break things, but apart from that to me there is no blocking reason to delay this any further than after the conflict resolution 😄 Thoughts? |
I also don't see a blocker to go forward with the plan that @DRvanR proposes. We can declare 0.x to be fixed only for truly critical issues that actually affect the remaining usage we know of for how long it takes to migrate those away. That is probably not often, if at all. |
Ah, nice, I'll swtich to that then and stop releasing 0.x releases 😄
Yes well, I'd like to see actual time commitment to porting SSP because a saml2 lib that isn't used by SSP is useless for us. It would not be the first time in OpenConext history that we end up with an 'next version' that was in effect a fork.
Good point, only patch releases from 1.7.x and no backports unless someone requests it 😄 |
Why is a SAML2 lib not used by SSP useless? If it is used by other projects (as it currently is) it seems to me it is useful. I really do think that other projects should not be a limiting factor for this project.
Introducing namespaces can hardly be considered a fork, especially if the commitment is made that for as long as needed fixes can be backported. |
woops, wrong button, sorry 😳 |
I do agree that there's significant value to SSP being an active user of the 'main' branch of this project. However, I think there's no doubt that SSP fully intends to migrate to PSR-2. Jaime has even committed explicitly to the migration on the SSP side in #31. |
Summarizing: There are two major stakeholders, SSP and OpenConext-engineblock. SSP has already committed to the migration as outlined by @thijskh. With regards to OpenConext-engineblock, the commitment will be made as part of the 5.x development effort (of which I will be a part). The 4.x range of OpenConext-engineblock will move to the 1.x branch using an alias so that it can be used together with SSP. With respect to the different major versions: The 0.x series will be discontinued with the caveat that it will receive critical fixes should it be required from users of that major, with the recommendation to move to the 1.x series as they are the same. The 1.x series will continue to receive fixes and, if required, backports of functionality until SSP and OpenConext-engineblock have migrated to the new 2.x series. After this PR has been merged, the 2.x series will be started. If there are no objections I propose the following actions to be taken:
Thoughts? Ideally I'd like to do this all today or tomorrow, to prevent possibly creating more conflicts 😉 |
thought = I agree |
👍 |
👍 |
Closed through #57 |
Thanks for the work @cb8! |
Based on #31 I converted the project to PSR-2. Basically the following things have been done:
SAML2_DOMDocumentFactory
->SAML2\DOMDocumentFactory
)SAML2_Const
toSAML2\Constants
asconst
is a reserved keyword.true
,false
&null
) to lowercase.