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

fix: deprecate domain sharding #42

Merged
merged 3 commits into from
May 1, 2019
Merged

Conversation

sherwinski
Copy link
Contributor

This PR begins the process of deprecating, and eventually removing, domain sharding from the imgix-php library.
The UrlBuilder object will now generate a warning when users attempt to initialize it by passing in multiple domains in the form of an array.

@sherwinski sherwinski requested a review from jayeb April 25, 2019 22:32
@sherwinski sherwinski force-pushed the deprecate-domain-sharding branch 3 times, most recently from 1d1186c to 9a86fd3 Compare April 26, 2019 23:42
@sherwinski sherwinski force-pushed the deprecate-domain-sharding branch from 9a86fd3 to 507ab19 Compare April 30, 2019 21:46
@sherwinski
Copy link
Contributor Author

To avoid potentially polluting our users' error logs, we will suppress the deprecation warning by using @trigger_error()
This can be easily overridden within one's environment by using error_reporting(E_ALL)

@sherwinski sherwinski requested a review from jayeb April 30, 2019 21:55
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