Skip to content
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

a single token provider suffices #24677

Merged
merged 1 commit into from
May 18, 2016
Merged

a single token provider suffices #24677

merged 1 commit into from
May 18, 2016

Conversation

ChristophWurst
Copy link
Contributor

@ChristophWurst ChristophWurst commented May 17, 2016

When implementing pluggable auth I thought we need it, but now I realized this makes things more complex as we won't need multiple providers.

@LukasReschke objections?

@MorrisJobke @PVince81 @rullzer review please

*
* @return string
*/
public function getPassword() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why add this if you are only calling the parent?

Copy link
Contributor Author

@ChristophWurst ChristophWurst May 18, 2016

Choose a reason for hiding this comment

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

Because it's part of the IToken interface and if I remember correctly it doesn't work with the magic method of the Entity class. The parent method is a magic getter.

Copy link
Contributor

Choose a reason for hiding this comment

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

Correct. I also noticed this :(

Copy link
Contributor

Choose a reason for hiding this comment

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

aaah yes crappy magic functions...

@rullzer
Copy link
Contributor

rullzer commented May 18, 2016

Yes things like that happen during development!

Also... intergration tests are failing

@ChristophWurst
Copy link
Contributor Author

Also... intergration tests are failing

fixed. Thanks for the quick review \o/

@PVince81
Copy link
Contributor

👍 as discussed

However I'm surprised that going from multi to single require all these interface additions ? Are they related or is that bonus content ?

@ChristophWurst
Copy link
Contributor Author

However I'm surprised that going from multi to single require all these interface additions ? Are they related or is that bonus content ?

Those changes enforce the 'program to an interface, not an implementation' principle. Before the DefaultTokenProvider and DefaultToken classes were used explicitly and those changes make it more generic by using the interface instead.

@PVince81
Copy link
Contributor

Sounds good!

@MorrisJobke
Copy link
Contributor

Code makes sense and it still works 👍

@PVince81 PVince81 merged commit 6231b72 into master May 18, 2016
@PVince81 PVince81 deleted the single-token-provider branch May 18, 2016 14:31
@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants