symfony / symfony

The Symfony PHP framework
https://symfony.com
MIT License
29.69k stars 9.44k forks source link

Composer twig-bridge #14517

Closed michsk closed 9 years ago

michsk commented 9 years ago

I was trying to install the symfony/twig-bridge, with the following requirments for my projec:

    "require": {
        "php": ">=5.5.9",
        "silex/silex": "~2.0@dev",
        "twig/twig": "~2.0@dev",
        "symfony/form": "~3.0@dev",
        "symfony/security-csrf": "~3.0@dev"
    }

But get the following issue:

  Problem 1
    - Can only install one of: twig/twig[1.x-dev, 2.0.x-dev].
    - Can only install one of: twig/twig[2.0.x-dev, 1.x-dev].
    - symfony/twig-bridge 3.0.x-dev requires twig/twig ~1.18 -> satisfiable by twig/twig[1.x-dev].
    - Installation request for symfony/twig-bridge ~3.0@dev -> satisfiable by symfony/twig-bridge[3.0.x-dev].
    - Installation request for twig/twig ~2.0@dev -> satisfiable by twig/twig[2.0.x-dev].

The twig-bridge is not yet compatible with twig 2.0?

phansys commented 9 years ago

Yes @Michal-sk, symfony/twig-bridge 3.0.x-dev has a dependency for twig/twig: ~1.18 (which means that only versions of 1.x branch can be resolved).

fabpot commented 9 years ago

Twig 2.0 is not even out yet :)