简体   繁体   English

作曲家需要symfony fork

[英]Composer require symfony fork

I need to use Symfony fork for testing bugfix. 我需要使用Symfony fork来测试错误修正。 My composer.json is: 我的composer.json是:

{
    ...
    "repositories": {
        "symfony": {
            "type": "git",
            "url": "https://github.com/nicolas-grekas/symfony.git"
        }
    },
    "require": {
        ...
        "symfony-bundles/redis-bundle": "2.*",
        "symfony/console": "4.*",
        "symfony/flex": "1.*",
        "symfony/framework-bundle": "4.*",
        "symfony/lts": "^4@dev",
        "symfony/monolog-bundle": "3.*",
        "symfony/proxy-manager-bridge": "4.*",
        "symfony/yaml": "4.*"
    },
    "require-dev": {
        ...
    },
    ...
}

(Full code is here: Github ) (完整的代码在这里: Github

Running commands such as 运行命令,例如

  • composer require symfony/symfony "dev-cache-fix"
  • composer require symfony/symfony "dev-cache-fix as 4.2.1-dev"

Fails with error: 失败并出现错误:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Installation request for __root__ dev-fork -> satisfiable by __root__[dev-fork].
    - symfony/symfony dev-cache-fix conflicts with __root__[dev-fork].
    - Installation request for symfony/symfony dev-cache-fix as 4.2.1-dev -> satisfiable by symfony/symfony[dev-cache-fix].

How can I solve this issue? 我该如何解决这个问题?

I need to delete all Symfony components (except monolog-bundle, because it is outside of fullstack framework), clean composer options conflict and replace . 我需要删除所有Symfony组件(monolog-bundle除外,因为它在全栈框架之外),干净的composer选项conflictreplace After that I need to change version of behat/mink to dev-master because the latest stable verion 1.7.1 locks symfony/assets component to version 3.x (issue github/minkphp ). 之后,我需要将behat/mink版本更改为dev-master因为最新的稳定版1.7.1将symfony/assets组件锁定为版本3.x (发行版github / minkphp )。 And the final step was to enable all used components in config/packages/framework.yaml . 最后一步是在config/packages/framework.yaml启用所有使用的组件。

framework:
    validation:
        enabled: true
        enable_annotations: true
    assets:
        enabled: true
    serializer:
        enabled: true
        enable_annotations: true
    annotations:
        enabled: true
    property_info:
        enabled: true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM