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

Require a HTTP Client as Payum/Core requires a http client implementation #511

Closed

Conversation

jacquesbh
Copy link

@jacquesbh jacquesbh commented Mar 2, 2020

This requirement is required to avoid a dependency error when we use
Symfony flex recipes.

See https://travis-ci.org/symfony/recipes-contrib/jobs/655281894.

I prefer to put this new requirement in the bundle since I force the http client to be the symfony one.

Update

I think a require-dev is better than a require since it doesn't force the developer to use the symfony implementation of the http-client.

@Tetragramat
Copy link
Contributor

I don't think that this will ever be accepted. You're forcing everyone to install one specified implementation of php-http/client-implementation.
You should find different solution. For example make payum pack repo which has only composer.json with require of payum/payum-bundle and symfony/http-client. And present it as preffered way to install payum using flex on symfony >=4.4.

@jacquesbh
Copy link
Author

I disagree because using the symfony/http-client is common sens in a Symfony Bundle.

Right now the bundle cannot be installed without error.

@jacquesbh jacquesbh force-pushed the resolve-virtual-package-dependency branch from e201da7 to 55c61eb Compare March 10, 2020 12:39
@jacquesbh
Copy link
Author

@Tetragramat I've updated the PR to require the http-client as dev dependency.
This should solve the issue you are pointing out.

What do you think?

@Tetragramat
Copy link
Contributor

That will not even fix your issue. Look at PR with similar issues symfony/recipes-contrib#395 and symfony/recipes-contrib#464 to get idea what to do.

@jacquesbh
Copy link
Author

Ok yes. So the recipe was merged even with the CI failing.

So I close this.

@jacquesbh jacquesbh closed this Mar 10, 2020
@jacquesbh jacquesbh deleted the resolve-virtual-package-dependency branch March 10, 2020 18:48
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