Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
symfony/dependency-injection": "~2.8"
The symfony/dependency-injection ~2.8 requirement has never been updated and conflicts with the drupal/core symfony ~3.2 and ^3.2 requirements.
Changing to ~2.8|~3.0 is the hot fix that would keep a composer merge happy but is this component actually compatible with both symfony/dependency-injection 2.8 and 3.2? Perhaps we can deduce a higher minimum version requirement by looking at the git logs. (or by just looking at all the code if you're a symfony expert)
Comment | File | Size | Author |
---|---|---|---|
#8 | 2876671_8.patch | 609 bytes | Mile23 |
Comments
Comment #2
Eric_A CreditAttribution: Eric_A commentedComment #3
Eric_A CreditAttribution: Eric_A commentedComment #4
Eric_A CreditAttribution: Eric_A commentedComment #5
Eric_A CreditAttribution: Eric_A commentedComment #6
Eric_A CreditAttribution: Eric_A commentedComment #8
Mile23In order to figure out how to be consistent in fixing this, I forked drupal/core-dependency: https://github.com/paul-m/core-dependency-injection/tree/8.4.x
I added some travis magic here: https://travis-ci.org/paul-m/core-dependency-injection
In order to get a passing test I had to make these changes: https://github.com/paul-m/core-dependency-injection/commit/0e2e0c591b65a...
In order to evaluate all this you can concentrate on the composer.json file. drupal/core-dependency-injection actually needs drupal/core-utility. And since the test includes
composer install --prefer-lowest
, we learn that drupal/core-dependency-injection can work with symfony/dependency-injection 3.0.0.This is actually a bug because there's no way to use only drupal/core-dependency-injection until this is fixed: http://cgit.drupalcode.org/drupal/tree/core/lib/Drupal/Component/Depende...
Comment #14
quietone CreditAttribution: quietone as a volunteer commentedNot sure which issue made this particular fix but the composer.json has been updated quite a few times since 2017. Drupal 8.9.x is on
"symfony/dependency-injection": "~3.4.26"
.Closing as outdated.