如果我做$作曲家需要hwi/oauth-bundle
我得到这个:
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
- Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3].
- hwi/oauth-bundle 0.6.3 requires php-http/client-implementation ^1.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.1].
- hwi/oauth-bundle 0.6.3 requires php-http/httplug ^1.0 -> satisfiable by php-http/httplug[v1.0.0, v1.1.0].
- Can only install one of: php-http/httplug[v2.0.0, v1.0.0].
- Can only install one of: php-http/httplug[v2.0.0, v1.1.0].
- php-http/guzzle6-adapter v2.0.1 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
- Conclusion: remove php-http/httplug v2.0.0
Installation failed, reverting ./composer.json to its original content.
我的PHP版本是:
$ php --version
PHP 7.2.15-0ubuntu0.18.04.2 (cli) (built: Mar 22 2019 17:05:14) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.15-0ubuntu0.18.04.2, Copyright (c) 1999-2018, by Zend Technologies
这是我当前的composer.json
:
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"sensio/framework-extra-bundle": "^5.1",
"symfony/apache-pack": "^1.0",
"symfony/asset": "4.2.*",
"symfony/console": "4.2.*",
"symfony/dotenv": "4.2.*",
"symfony/expression-language": "4.2.*",
"symfony/flex": "^1.1",
"symfony/form": "4.2.*",
"symfony/framework-bundle": "4.2.*",
"symfony/monolog-bundle": "^3.1",
"symfony/orm-pack": "*",
"symfony/process": "4.2.*",
"symfony/security-bundle": "4.2.*",
"symfony/serializer-pack": "*",
"symfony/swiftmailer-bundle": "^3.1",
"symfony/translation": "4.2.*",
"symfony/twig-bundle": "4.2.*",
"symfony/validator": "4.2.*",
"symfony/web-link": "4.2.*",
"symfony/webpack-encore-bundle": "^1.4",
"symfony/yaml": "4.2.*"
},
"require-dev": {
"symfony/debug-pack": "*",
"symfony/maker-bundle": "^1.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "*",
"symfony/web-server-bundle": "4.2.*"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.2.*"
}
}
}
我的symfony版本是:
$ php bin/console --version
Symfony 4.2.4 (env: dev, debug: true)
如何在SFv4.2.4
和PHPv7.2.15
中安装hwi/oauth bundle
?
这是一个复制品:hwi oauth捆绑包和Symfony 4.2:不可能安装
Luc的回答是加上这个对我来说很好
"hwi/oauth-bundle": "^0.6.3",
"php-http/guzzle6-adapter": "~1.1.1",
"php-http/httplug-bundle": "~1.13"
事实上,我所做的是通过以下命令从命令行要求它们:
composer require "hwi/oauth-bundle:^0.6.3" "php-http/guzzle6-adapter:~1.1.1" "php-http/httplug-bundle:~1.13"
然后当被问及是否要执行此配方时?
(两次,一次用于hwi/oauth-bundle
,另一次用于php-超文本传输协议/http plug-bundle
)我所做的是告诉n
并从这里手动遵循食谱:https://github.com/symfony/recipes-contrib/tree/master/hwi/oauth-bundle/0.6
我在这里添加了路由文件(路由的导入)https://github.com/symfony/recipes-contrib/blob/master/hwi/oauth-bundle/0.6/config/routes/hwi_oauth_routing.yaml在这里添加了包文件(配置)https://github.com/symfony/recipes-contrib/blob/master/hwi/oauth-bundle/0.6/config/packages/hwi_oauth.yaml
然后我添加了修改我的bundles.php
的bundle,然后最后在食谱根中使用manifest.json
和post-install.txt
来帮助我有一个很好的配置(包括我不得不改变的. env
建议,因为我不想使用Facebook,而是谷歌的。
这里的食谱也一样https://github.com/symfony/recipes-contrib/tree/master/php-http/httplug-bundle/1.6 对于HttpPlug。刚刚添加了包配置文件。
我正在尝试用symfony 4.2安装HWI oauth捆绑包,但它不起作用。我遵循所描述的步骤:https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/1-setting_up_the_bundle.md 但它不起作用。 下面的作曲家输出: 附言:在我composer.json的最后,我补充道: 编写器需要hwi/oauth
我知道这个答案:Pax考试:提供具有所有依赖项的捆绑包,但当我必须包含作为我项目外部捆绑包一部分的捆绑包时,感觉我做错了什么。 这是我得到的错误: 下面是我的pax考试的配置代码: 所以我的问题是:为什么我会遇到关于未解决约束的错误,我是否必须包括外部捆绑包,以及我需要做什么才能让我的测试运行?
问题内容: 在我的AEM项目的代码中看似无关紧要的更改之后,我的捆绑软件无法解决。检查日志后,我可以看到出现以下错误。 该项目在本地编译得很好,并且只有在容器尝试解决该捆绑包后,该问题才会出现。 我没有在任何更改中添加任何显式依赖项。项目对象模型与以前相同。顾名思义,这是一个核心Java软件包,因此我希望它会被System软件包公开。 我正在运行AEM支持的JDK 7,所以不要指望它与JVM兼容性
我创建了一个依赖于SLF4J的捆绑包,因此使用Logback来实现OSGI。这一切都捆绑起来并安装正常,但是当我开始捆绑时,我得到以下异常: org.osgi.framework.BundleException: 無法解析 com.felix.test [20](R 20.0): missing requirements [com.felix.test [20](R 20.0)] osgi.wir
我无法正确解析Sylius设置包。我的应用程序是Symfony标准应用程序。根据要求是条令/条令束~1.2 我现在的json:https://gist.github.com/Rvanlaak/f627a73a8d431600f8ba 解析sylius/setation-bundle给我以下错误: 将我的条令/条令包更改为~1。3@dev或1.2。0给出了错误: 在需要sylius/settings
问题内容: 我试图通过System.Web.Optimization.React使用ASP.NET缩小和优化来缩小我的.JSX文件。我已经安装了MVC4 React软件包以及Optimization软件包,但是每当尝试包含一个软件包时,我都会得到以下信息: InnerException总是 我的捆绑软件设置如下: 并包含在视图中为: 该错误总是在线上抛出: 有人对如何解决/调试这个有任何想法吗?让