作曲家警告“包装zendframework / zend代码已被放弃”


12

我从作曲家那里得到警告:

软件包zendframework / zend-code被放弃了,您应该避免使用它。请改用laminas / laminas-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.*"
        }
    }
}

Answers:


12

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

composer depends zendframework/zend-code

结果:

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

ocramius / proxy-manager由主义迁移使用,它随symfony / orm-pack一起提供。您不必担心它,但是应该可以通过运行来更新它composer upgrade

composer upgrade
...

composer depends zendframework/zend-code

结果:

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

12
如果“作曲家升级”没有任何帮助,请注意。在我的情况下,ocramius / proxy-manager停留在2.2.3上,这是由于其PHP ^ 7.4.0要求(自2.3.0开始)引起的
tdd

@tdd是一个很好的评论,该信息实际上应该在所选答案之内。运行PHP 7.1,在看到您的评论之前找不到它为什么不起作用。
基诺

嗨,我遇到了类似上述的问题,但是我想继续使用Old Zend Package来测试我的应用程序。但是,即使我的JSON与Zend Package一样,我也无法更新composer。您能否建议如何继续使用旧Zend软件包。
Krishna38

4

尝试运行在composer警告中调用的这2个命令:

composer require laminas/laminas-eventmanager

composer require laminas/laminas-code

它将更新:

laminas / laminas-code 3.4.1替换了zendframework / zend-code(self.version)ocramius / proxy-manager 2.2.3要求zendframework / zend-code(^ 3.3.0)(由“作案者取决于zendframework / zend-code进行检查” ”)


但是,感谢您的回答,最好简短说明为什么代码或命令可以解决问题,而不仅仅是命令。了解更多答案
DCTID

1
编辑:尝试运行在composer警告中调用的这2个命令:“ composer require laminas / laminas-eventmanager”和“ composer require laminas / laminas-code”它将更新:laminas / laminas-code 3.4.1替换了zendframework / zend-code (self.version)ocramius / proxy-manager 2.2.3需要zendframework / zend代码(^ 3.3.0)(由“根据撰写者而定,zendframework / zend代码”检查)
wioladak

效果很好。谢谢!
Aldo Paradiso
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.