我有一个Symfony 2.8项目,我正试图在该项目上安装sentine/sentint-Symfony。为了做到这一点,我正在运行"composer require sentry/ssentry symfony"。
据我所知,这个sentry库与Symfony2.x兼容,但看起来它需要Symfony/http内核3或更高版本。
我的composer.json文件有以下内容。。。
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.8.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0.12",
"sensio/framework-extra-bundle": "~3.0",
"incenteev/composer-parameter-handler": "~2.0",
"knplabs/knp-paginator-bundle": "~2.4",
"stripe/stripe-php": "^3.7",
"twig/extensions": "^1.0"
},
这就是当我尝试做作曲家要求时会发生的事情。。。
composer require sentry/sentry-symfony
Using version ^2.2 for sentry/sentry-symfony
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for sentry/sentry-symfony ^2.2 -> satisfiable by sentry/sentry-symfony[2.2.0].
- Conclusion: remove symfony/symfony v2.8.49
- Conclusion: don't install symfony/symfony v2.8.49
- sentry/sentry-symfony 2.2.0 requires symfony/http-kernel ^3.0||^4.0 -> satisfiable by symfony/http-kernel[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.1, v3.1.10, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9, v3.2.0, v3.2.1, v3.2.10, v3.2.11, v3.2.12, v3.2.13, v3.2.14, v3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.2.9, v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v3.3.16, v3.3.17, v3.3.18, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.15, v3.4.16, v3.4.17, v3.4.18, v3.4.19, v3.4.2, v3.4.20, v3.4.21, v3.4.3, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9, v4.0.0, v4.0.1, v4.0.10, v4.0.11, v4.0.12, v4.0.13, v4.0.14, v4.0.15, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.0, v4.2.1, v4.2.2].
- don't install symfony/http-kernel v3.0.0|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.1|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.2|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.3|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.4|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.5|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.6|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.7|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.8|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.0.9|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.0|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.1|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.10|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.2|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.3|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.4|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.5|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.6|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.7|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.8|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.1.9|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.0|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.1|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.10|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.11|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.12|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.13|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.14|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.2|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.3|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.4|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.5|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.6|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.7|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.8|don't install symfony/symfony v2.8.49
- don't install symfony/http-kernel v3.2.9|don't install symfony/symfony v2.8.49
- symfony/http-kernel v3.3.0 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.1 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.10 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.11 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.12 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.13 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.14 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.15 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.16 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.17 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.18 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.2 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.3 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.4 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.5 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.6 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.7 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.8 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.3.9 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.0 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.1 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.10 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.11 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.12 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.13 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.14 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.15 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.16 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.17 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.18 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.19 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.2 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.20 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.21 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.3 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.4 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.5 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.6 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.7 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.8 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v3.4.9 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.0 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.1 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.10 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.11 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.12 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.13 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.14 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.15 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.2 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.3 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.4 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.5 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.6 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.7 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.8 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.0.9 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.0 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.1 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.10 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.2 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.3 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.4 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.5 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.6 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.7 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.8 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.1.9 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.2.0 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.2.1 conflicts with symfony/symfony[v2.8.49].
- symfony/http-kernel v4.2.2 conflicts with symfony/symfony[v2.8.49].
- Installation request for symfony/symfony (locked at v2.8.49, required as 2.8.*) -> satisfiable by symfony/symfony[v2.8.49].
您不能将Sentry 2.x与Symfony 2.x一起使用。
来自文件:
2.x在master分支上被主动维护,但它需要Symfony 3+和PHP 7.1+;
1.x仍然支持Symfony 2和PHP 5.6/7.0;它可以从主分支接收功能的后台端口,但不能保证
要安装1.x版本,请使用
composer require sentry/sentry-symfony "<2"
这将在2 下面安装最新版本