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

convert self to static in Request.php #283

Merged
merged 1 commit into from
Jan 18, 2025
Merged

Conversation

ariaieboy
Copy link
Contributor

@ariaieboy ariaieboy commented Jan 14, 2025

Ok here is the problem.
In some regions spotify blocks the request to bypass it we need to use a proxy.
And for that, we need to change the ACCOUNT_URL and API_URL.
I've extended the Request class and changed those constants. I also passed my custom Request class to the web API.
But since you used self::, it's not inheritance-aware. By using static::, it will be inheritance-aware, and we can change those constants.

@ariaieboy
Copy link
Contributor Author

cc: @jwilsson

@jwilsson
Copy link
Owner

Cool! TIL. Thanks for contributing!

@jwilsson jwilsson merged commit 42edbe9 into jwilsson:main Jan 18, 2025
4 checks passed
@jwilsson
Copy link
Owner

Released in 6.2.0.

@ariaieboy ariaieboy deleted the static branch January 18, 2025 07:03
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