Php 在composer.json中更新了symfony,但我在尝试安装带有“";要求;

Php 在composer.json中更新了symfony,但我在尝试安装带有“";要求;,php,symfony,composer-php,symfony4,symfony5,Php,Symfony,Composer Php,Symfony4,Symfony5,我将Symfony升级到5.0版本 当我运行服务器时,一切正常。但是,当我使用composer(示例composer remove tattali/calendar bundle)时,会出现以下错误: C:\cmder\roadtrip>composer remove tattali/calendar-bundle Dependency "symfony/framework-bundle" is also a root requirement, but is not exp

我将Symfony升级到5.0版本

当我运行服务器时,一切正常。但是,当我使用composer(示例composer remove tattali/calendar bundle)时,会出现以下错误:

    C:\cmder\roadtrip>composer remove tattali/calendar-bundle
    Dependency "symfony/framework-bundle" is also a root requirement, but is not explicitly whitelisted. Ignoring.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Restricting packages listed in "symfony/symfony" to "5.0.*"
    Your requirements could not be resolved to an installable set of packages.

      Problem 1
        - The requested package symfony/console (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/console[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 2
        - The requested package symfony/dotenv (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/dotenv[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 3
        - The requested package symfony/filesystem (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/filesystem[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 4
        - The requested package symfony/form (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/form[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 5
        - The requested package symfony/framework-bundle (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/framework-bundle[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 6
        - The requested package symfony/intl (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/intl[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 7
        - The requested package symfony/property-access (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/property-access[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 8
        - The requested package symfony/security-bundle (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/security-bundle[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 9
        - The requested package symfony/serializer (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/serializer[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 10
        - The requested package symfony/translation (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/translation[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 11
        - The requested package symfony/validator (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/validator[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 12
        - The requested package symfony/var-dumper (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/var-dumper[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 13
        - The requested package symfony/yaml (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/yaml[v4.4.4] but these conflict with your requirements or minimum-stability.
      Problem 14
        - ocramius/package-versions 1.5.1 requires php ^7.3.0 -> your PHP version (7.2.27) does not satisfy that requirement.
        - ocramius/package-versions 1.5.1 requires php ^7.3.0 -> your PHP version (7.2.27) does not satisfy that requirement.
        - ocramius/package-versions 1.5.1 requires php ^7.3.0 -> your PHP version (7.2.27) does not satisfy that requirement.
        - Installation request for ocramius/package-versions (locked at 1.5.1) -> satisfiable by ocramius/package-versions[1.5.1].


Removal failed, reverting ./composer.json to its original content.
我不明白我必须做什么来解决这个问题

编辑:

我将Php更新到最新版本,解决了所有折旧问题,将doctrine extensions捆绑包更改为Symfony 5支持的捆绑包。现在,我得到了这些错误:

C:\cmder\roadtrip>composer update knplabs/knp-paginator-bundle
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package symfony/console (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/console[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 2
    - The requested package symfony/dotenv (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/dotenv[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 3
    - The requested package symfony/filesystem (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/filesystem[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 4
    - The requested package symfony/form (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/form[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 5
    - The requested package symfony/framework-bundle (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/framework-bundle[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 6
    - The requested package symfony/intl (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/intl[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 7
    - The requested package symfony/property-access (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/property-access[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 8
    - The requested package symfony/security-bundle (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/security-bundle[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 9
    - The requested package symfony/serializer (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/serializer[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 10
    - The requested package symfony/translation (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/translation[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 11
    - The requested package symfony/validator (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/validator[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 12
    - The requested package symfony/var-dumper (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/var-dumper[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 13
    - The requested package symfony/yaml (locked at v4.4.4, required as 5.0.*) is satisfiable by symfony/yaml[v4.4.4] but these conflict with your requirements or minimum-stability.
  Problem 14
    - symfony/web-server-bundle v4.2.12 requires symfony/console ~3.4|~4.0 -> satisfiable by symfony/console[v4.4.4] but these conflict with your requirements or minimum-stability.
    - symfony/web-server-bundle v4.2.12 requires symfony/console ~3.4|~4.0 -> satisfiable by symfony/console[v4.4.4] but these conflict with your requirements or minimum-stability.
    - symfony/web-server-bundle v4.2.12 requires symfony/console ~3.4|~4.0 -> satisfiable by symfony/console[v4.4.4] but these conflict with your requirements or minimum-stability.
    - Installation request for symfony/web-server-bundle (locked at v4.2.12, required as 4.2.*) -> satisfiable by symfony/web-server-bundle[v4.2.12].

我通过删除Web服务器捆绑包解决了问题。

不,我没有解决方案。我将Php更新到最新版本,解决了所有折旧问题,我将doctrine extensions捆绑包更改为Symfony 5支持的捆绑包,但我始终会收到此类错误消息。当我执行“composer update”时,我会收到相同的错误。创建一个新的Symfony 5项目,然后运行“composer require tattali/calendar捆绑包”,看看会发生什么。如果出现错误,则您知道捆绑包尚未针对S5进行更新。您可以在github上检查更新是否至少已安排。如果没有错误,那么至少你知道问题在别处。Symfony和Composer在小更新方面做得很好,但大的更新可能会有问题。这是一个懒散的周日上午,我继续进行,然后提出了自己的建议。没有错误。现在,您应该继续安装应用程序使用的任何其他第三方捆绑包。如果它们都安装得很干净,那么您可以用新的composer.json替换现有的composer.json。您可以共享您的composer.json吗