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 #10: Use symfony http-client and respect proxy settings #33

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

danepowell
Copy link
Collaborator

Fixes #10

@danepowell
Copy link
Collaborator Author

I have no way to verify that the proxy settings actually work, but I did at least verify there are no regressions.

@danepowell danepowell merged commit e3cc75a into consolidation:main Jul 18, 2024
1 check passed

$releases = file_get_contents('https://api.github.com/repos/' . $this->gitHubRepository . '/releases', false, $context);
$releases = json_decode($releases);
$releases = json_decode($response->getContent(), FALSE, 512, JSON_THROW_ON_ERROR);
Copy link

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, but the rest of the class assumes $releases is an object and I wanted to minimize refactoring for 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.

SelfUpdateCommand.php does not use proxy settings in the stream context
2 participants