gpt4 book ai didi

symfony - Composer 警告 "Package zendframework/zend-code is abandoned"

转载 作者:行者123 更新时间:2023-12-02 01:21:33 32 4
gpt4 key购买 nike

我收到来自 Composer 的警告:

包 zendframework/zend-code 已被废弃,您应该避免使用它。请改用层压板/层压板代码。zendframework/zend-eventmanager 包已被废弃,您应该避免使用它。请改用 laminas/laminas-eventmanager。

但是,我在composer.json 中看不到任何对zend 的引用(见下文)。我应该担心吗?我可以简单地安装 laminas/laminas-code 等来让它消失吗?

欢迎任何信息。

谢谢

马丁

{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"easycorp/easyadmin-bundle": "^2.0",
"edwin-luijten/oauth2-strava": "^1.3",
"egulias/email-validator": "^2.1",
"knpuniversity/oauth2-client-bundle": "^1.32",
"martynwheeler/oauth2-komoot": "dev-master",
"sensio/framework-extra-bundle": "^5.2",
"symfony/apache-pack": "^1.0",
"symfony/asset": "4.4.*",
"symfony/console": "4.4.*",
"symfony/dotenv": "4.4.*",
"symfony/expression-language": "4.4.*",
"symfony/filesystem": "4.4.*",
"symfony/flex": "^1.1",
"symfony/form": "4.4.*",
"symfony/framework-bundle": "4.4.*",
"symfony/monolog-bundle": "^3.1",
"symfony/orm-pack": "*",
"symfony/process": "4.4.*",
"symfony/security-bundle": "4.4.*",
"symfony/serializer-pack": "*",
"symfony/swiftmailer-bundle": "^3.1",
"symfony/translation": "4.4.*",
"symfony/twig-bundle": "4.4.*",
"symfony/validator": "4.4.*",
"symfony/web-link": "4.4.*",
"symfony/yaml": "4.4.*"
},
"require-dev": {
"symfony/debug-pack": "*",
"symfony/maker-bundle": "^1.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "*",
"symfony/web-server-bundle": "4.4.*"
},
"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.4.*"
}
}
}

最佳答案

要检查哪个包依赖于它,请运行:

composer depends zendframework/zend-code

结果:

ocramius/proxy-manager  2.2.3  requires  zendframework/zend-code (^3.3.0)

ocramius/proxy-manager 由 doctrine migrations 使用,它带有 symfony/orm-pack。您不必担心它,但您应该能够通过运行 composer update

来更新它
composer upgrade
...

composer depends zendframework/zend-code

结果:

laminas/laminas-code  3.4.1  replaces  zendframework/zend-code (self.version)

关于symfony - Composer 警告 "Package zendframework/zend-code is abandoned",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59923243/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com