Skip to content

Conversation

xabbuh
Copy link
Contributor

@xabbuh xabbuh commented Nov 16, 2016

There is no need to be able to extend these classes. Making them final
allows for easier refactoring in the future as you will not have to
worry about breaking BC.

There is no need to be able to extend these classes. Making them final
allows for easier refactoring in the future as you will not have to
worry about breaking BC.
@xabbuh
Copy link
Contributor Author

xabbuh commented Nov 16, 2016

@WyriHaximus Is there really some need for the Token interface implemented by AccessToken and RequestToken?

@WyriHaximus
Copy link
Member

@xabbuh not sure tbh, the original code is from @simensen maybe he can shed some light on that?

@WyriHaximus WyriHaximus merged commit 458c126 into php-api-clients:master Nov 16, 2016
@xabbuh xabbuh deleted the final-classes branch November 16, 2016 09:58
@WyriHaximus WyriHaximus added this to the 1.0 milestone Nov 21, 2016
@WyriHaximus
Copy link
Member

@xabbuh I've had a chat with @simensen the other day and the original reasoning was Only thing I could think of is if you wanted a token storage eventually that can store either type of token. But might be flimsy excuse. so I'm inclined to remove it and then tag 1.0, 2.0 will be a full PHP 7.0 port that will be 100% BC. And any new feature releases/bug fix releases will be ported between 1.0 and 2.0 so they stay compatible.

@WyriHaximus
Copy link
Member

PR is up at #12

@xabbuh xabbuh restored the final-classes branch June 10, 2020 07:16
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.

2 participants