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

Plugin helpers for v2 #9278

Merged
merged 4 commits into from Oct 13, 2020
Merged

Plugin helpers for v2 #9278

merged 4 commits into from Oct 13, 2020

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Oct 13, 2020

Fixes #9209

Open for more ideas if someone has anything to add here.

if ($this->httpDownloader) {
$this->httpDownloader->enableAsync();
}
$this->httpDownloader->enableAsync();
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is not an issue with this PR, but it seems odd that we mutate the client here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it's not ideal, but it lets people create and use a sync client without shooting themselves in the foot.

@Seldaek Seldaek merged commit aac1a25 into composer:master Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Usage of a downloaders in a Composer plugin targeting both v1 & v2
3 participants