当前位置: 首页 > 知识库问答 >
问题:

hwi oauth捆绑包和Symfony 4.2:无法安装

萧辰沛
2023-03-14

我正在尝试用symfony 4.2安装HWI oauth捆绑包,但它不起作用。我遵循所描述的步骤:https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/1-setting_up_the_bundle.md 但它不起作用。

下面的作曲家输出:

composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle
Using version ^0.6.3 for hwi/oauth-bundle
Using version ^2.0 for php-http/guzzle6-adapter
Using version ^1.14 for php-http/httplug-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.2.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install hwi/oauth-bundle 0.6.3
    - php-http/client-common v1.6.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common v1.4.2 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common v1.4.1 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common v1.4.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common 1.5.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common 1.3.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3, 0.6.x-dev].
    - hwi/oauth-bundle 0.6.x-dev requires php-http/client-common ^1.3 -> satisfiable by php-http/client-common[1.3.0, 1.5.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.x-dev, v1.4.0, v1.4.1, v1.4.2, v1.6.0].
    - php-http/client-common 1.7.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.8.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.8.1 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.8.2 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.9.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.x-dev requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - Conclusion: don't install php-http/httplug v1.1.0

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

附言:在我composer.json的最后,我补充道:

"minimum-stability": "dev",
"prefer-stable": true

编写器需要hwi/oauth捆绑包--忽略平台需求

Using version ^0.6.3 for hwi/oauth-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.2.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - hwi/oauth-bundle 0.6.x-dev requires php-http/client-implementation ^1.0 -> no matching package found.
    - hwi/oauth-bundle 0.6.3 requires php-http/client-implementation ^1.0 -> no matching package found.
    - Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3, 0.6.x-dev].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

composer需要hwi/oauth bundle php http/GUZULE6适配器php http/httplug bundle--忽略平台需求

Using version ^0.6.3 for hwi/oauth-bundle
Using version ^2.0 for php-http/guzzle6-adapter
Using version ^1.14 for php-http/httplug-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.2.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install hwi/oauth-bundle 0.6.3
    - php-http/client-common v1.6.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common v1.4.2 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common v1.4.1 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common v1.4.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common 1.5.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - php-http/client-common 1.3.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
    - Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3, 0.6.x-dev].
    - hwi/oauth-bundle 0.6.x-dev requires php-http/client-common ^1.3 -> satisfiable by php-http/client-common[1.3.0, 1.5.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.x-dev, v1.4.0, v1.4.1, v1.4.2, v1.6.0].
    - php-http/client-common 1.7.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.8.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.8.1 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.8.2 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.9.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - php-http/client-common 1.x-dev requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - Conclusion: don't install php-http/httplug v1.1.0

共有2个答案

阳航
2023-03-14

如果有人有同样的问题,我会回答自己的问题。我已经在Nico的回复评论中写下了这一点,但它并不容易阅读。

我通过添加我的composer.json来解决我的问题:

"hwi/oauth-bundle": "^0.6.3",
"php-http/guzzle6-adapter": "~1.1.1",
"php-http/httplug-bundle": "~1.13"

然后我做了一个

composer update 

和所有已安装和工作!

魏鸿
2023-03-14

根据https://github.com/hwi/HWIOAuthBundle/issues/1457#issuecomment-449733824,您可以尝试以下操作:

composer require php-http/guzzle6-adapter:^1.1
composer require php-http/httplug-bundle
composer require hwi/oauth-bundle
 类似资料:
  • 我有一个包在 此文件夹包含: 然后我在中注册: 这样做后,网站根本无法工作。日志上说: PHP致命错误:未捕获错误:在/var/www/html/symproject/app/AppKernel中找不到类“MyCompany\Action\Provider\MyAppProvider\Bundle\MyAppBundle”。php:20\n堆栈跟踪:\n#0/var/www/html/sympro

  • 检测到JavaFX Ant API版本1.3结果:1 init:deps clean:正在更新属性文件:D:\softphone\build\build clean。属性删除目录D:\softphone\build clean:deps jar: 创建dir: D:\softphone\build 正在更新属性文件:D:\softphone\build\build jar。性质 已创建目录:D:\

  • 我还不是一个有经验的OSGi用户,因此我会遇到一些问题。 我正在尝试使用作为外部提供程序,因为我不希望我的包包含所有这些类。 但是,当我运行这组包(my和)时,我得到以下错误: 错误:Bundle org.apache.serviceMix.bundles.hadoop-client[56]错误启动文件:bundles/org.apache.serviceMix.bundles.hadoop-cl

  • 我正在尝试使用maven将我的包安装到felix控制台中。 我做了一件不同的事, 我创建了自己的用户(而不是管理员),并将该用户放入管理员组。此外,我还在Apache Web控制台安全提供程序中添加了我的新用户。通过此操作,我可以在本地主机4502/系统/控制台/捆绑包中访问和安装捆绑包。但如果我尝试将maven用于相同的工作,它会给出以下异常。

  • 我正在尝试部署我现有的项目,该项目在ApacheKaraf4.2.1(运行时)中内置了SpringDM(OSGI)1.2.1,但没有正确安装。ApacheKaraf4.2.1支持SpringDM(OSGI)1.2.1吗?我知道spring dm(OSGI)1.2.1不再正式支持spring,它已作为eclipse Gemini项目的名称转移到eclipse。我已经浏览了下面提到的一些链接:Spri

  • 问题内容: 在我的AEM项目的代码中看似无关紧要的更改之后,我的捆绑软件无法解决。检查日志后,我可以看到出现以下错误。 该项目在本地编译得很好,并且只有在容器尝试解决该捆绑包后,该问题才会出现。 我没有在任何更改中添加任何显式依赖项。项目对象模型与以前相同。顾名思义,这是一个核心Java软件包,因此我希望它会被System软件包公开。 我正在运行AEM支持的JDK 7,所以不要指望它与JVM兼容性