rollerworks / PasswordStrengthBundle

Symfony Password strength and blacklisting validator bundle
MIT License
142 stars 26 forks source link

Refactor 2.0 #80

Closed sstok closed 7 years ago

sstok commented 7 years ago
Q A
Bug fix? no
New feature? yes
BC breaks? no (see UPGRADE-2.0.md)
Deprecations? no
Tests pass? yes
Fixed tickets Closes #53
License MIT
sstok commented 7 years ago

Note, there are some minor style issues (final for tests and missing @internal markers) but this can be fixed later. This pull-request is already very big.

cordoval commented 7 years ago

why adding too much stuff into a PR?

can you send separate PRs that can be easily merged and are non breaking?

like:

sstok commented 7 years ago

I did some minor work in other pull requests. This pull request is best viewed as separate commits.

It's not possible to further reduce the changes into smaller pull request as the split library has a number of other changes (to enhance lazy loading) which requires integration in the bundle.

stof commented 7 years ago

@sstok what about providing a continuous migration path: first convert class of the bundle to deprecated classes extending the library ones in 1.x (to allow people to migrate their annotations based on deprecation warnings), and then doing the removal of old annotations in 2.0 ?

sstok commented 7 years ago

@sstok what about providing a continuous migration path: first convert class of the bundle to deprecated classes extending the library ones in 1.x (to allow people to migrate their annotations based on deprecation warnings), and then doing the removal of old annotations in 2.0 ?

Good point, v1.5 can still be used for Symfony 2.3 but in 1.7 we can bump the requirement for Symfony to 2.8 (last LTS) and PHP 5.6 (last supported PHP 5 version).

Thanks for the suggestion, I will get started with it 👍

sstok commented 7 years ago

Version 1.7 ( #83 ) has been released to allow a smooth transition to 2.0.

Unless there any other comments I can merge this one today and tag 2.0.0 👍

stof commented 7 years ago

@sstok you should first merge 1.x into master and then rebase this branch. Otherwise, you'll get conflicts.

cordoval commented 7 years ago

@sstok something i would like to have addressed is documentation to migrate and also understand the inner things. Otherwise is going to force me to rip off the classes or stick to the old version. thanks. Would be ideal to have this addressed before the merge.

stof commented 7 years ago

@cordoval the UPGRADE file is part of this PR.

sstok commented 7 years ago

Please review, I also fixed some minor errors in the documentation.