Which Symfony version does Drupal use for the Symfony components? Is it a goal to support the latest versions of the components or is this simply not possible?

share|improve this question
    
2.x, but it looks like 8.3.x has upgraded to Symfony 3.x. drupal.org/node/2743809 – Kevin Dec 12 '16 at 15:43
    
@Kevin That patch was reverted. There are currently separate issues for Symfony 3.1, and Symfony 3.2. Each has their own challenges because of API breaks. – mpdonadio Dec 12 '16 at 15:53
up vote 7 down vote accepted

It is more accurate to say that Drupal 8 uses Symfony components, rather than all of Symfony. If you look at 'core/composer.json' you will see all of the individual components that Drupal uses listed out. The precise versions that get installed are listed in the 'composer.lock' file.

Drupal 8.2.x uses the 2.8 versions of these components.

For Drupal 8.3.x, there are issues open for updating to 3.1 and 3.2, but these are still works in progress. (I think there may be a 3.3 issue, but I can't find it).

The goal is to start tracking the 3.x versions, but the conversion has not been straightforward.

share|improve this answer
1  
One addition: composer.lock is the file that defines which versions that are used exactly. One problem is that using composer-based workflows can easily result in updating such componants, and that can result in problems if it is not a version that has been explicitly tested. @webflo provides a package that does nothing but contain a composer.json that has the exact dependencies that any given core version has: github.com/webflo/drupal-core-strict. If you use that, you can be sure that you never accidently update any of those dependencies. – Berdir Dec 12 '16 at 19:28
    
Thanks @Berdir. The bit about the exact version is important. I was hesitant to mention the lockfile as I find them hard to read, and it isn't always clear upon first glance when a package is there because it is a primary dependency, or there because something else requires it. – mpdonadio Dec 12 '16 at 22:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.