Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed deprecations for Symfony 4.3+#21

Closed
SvetlinStaev wants to merge 3 commits intojmikola:masterfrom
SvetlinStaev:fix-symfony-43-deprecation
Closed

Fixed deprecations for Symfony 4.3+#21
SvetlinStaev wants to merge 3 commits intojmikola:masterfrom
SvetlinStaev:fix-symfony-43-deprecation

Conversation

@SvetlinStaev
Copy link
Contributor

This is a PR which updates the library to support the Symfony 4.3 without any deprecations. Also removing some unused security interfaces deprecated since Symfony 3.

@jmikola
Copy link
Owner

jmikola commented Aug 28, 2019

@SvetlinStaev: Thanks for the contribution. Was AutoLoginListener the only file still using deprecated classes throughout the library?

On a side note, will this PR require changes to composer.json? I assume Symfony 2.0 and 3.0 may no longer be supported with this change.

Updated composer constraints to match Symfony 4.3
Updated composer library version since the changes break compat with Symfony 2 and 3
Added typehints where possible
@SvetlinStaev
Copy link
Contributor Author

@jmikola, I push some changes to fix an event dispatcher change and updated composer to reflect that these changes should be best suited for 4.3+ of Symfony which also ups the PHP min requirement to 7.1.

Copy link
Owner

@jmikola jmikola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SvetlinStaev Thanks for putting the effort into this PR. I have just a couple of questions but I think this is overall in good shape to merge and release. Happy to address the outstanding todo items myself if you'd just like to follow up on the questions.

public function authenticate(TokenInterface $token)
{
if (!$this->supports($token)) {
if (!$token instanceof AutoLoginToken || !$this->supports($token)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove this before merging, as this check is already done in the supports() method.

jmikola added a commit that referenced this pull request Dec 23, 2019
@jmikola
Copy link
Owner

jmikola commented Dec 23, 2019

Manually squashed and merged in 055912a. Thanks!

@jmikola jmikola closed this Dec 23, 2019
@SvetlinStaev SvetlinStaev deleted the fix-symfony-43-deprecation branch December 24, 2019 06:20
@jmikola
Copy link
Owner

jmikola commented Apr 2, 2020

2.0.0 has been tagged and includes this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants