-
Notifications
You must be signed in to change notification settings - Fork 49
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
Composer dependency missing? #107
Comments
Hey. Good question. That is why we have “missing” dependencies. So you should chose yourself what http client and psr7 package you want to use and install. |
@sydekumf maybe you already know, but if not then thats probably whats confusing to you: it is perfectly fine to |
Hi guys, thanks a lot for that explanation! To be honest I did not know that it is the purpose of this lib to find out which implementation exists :-)
|
You should not get such warning. |
It is Magento 1, yes. And idea how to use it in that combination? We use this package, which depends on php-http/discovery: https://github.com/wirecard/paymentSDK-php/blob/master/composer.json |
No sorry. That is an issue with Magento. They are trying to create classes on It was discussed here: #105 |
Lol, just read through it all :-) Had to laugh a lot, it seems not to be an easy issue. Thanks a lot @Nyholm for that information, helps me a lot! |
By any chance, do you have a suggestion for working around this issue? |
Ha, never mind! |
@dbu would it make sense to add try/catch around our class_exists? I think that would work and it would help magento users. It is “weird php”... |
actually yeah lets do that, with a comment what its for. doesn't cost us much and if magento believes in breaking things rather than following specs, we can help people here. |
Just a quick question: In
Http\Discovery\Strategy\CommonClassesStrategy
you use classes i.e.Nyholm\Psr7\Request
and this dependency is not defined in thecomposer.json
. How does it work? This package composer.json states:The Nyholm composer.json (https://github.com/Nyholm/psr7/blob/master/composer.json) states:
How can I use this package without conflicts and how is it supposed to be used when the dependencies are not explicitly declared? Thanks a lot guys.
The text was updated successfully, but these errors were encountered: