Last week, I released Symfony 2.2.0 RC1, but as some of the dependencies needed for the Symfony Standard Edition were not yet tagged with a minimal stability of alpha, I was not able to create a proper downloadable archive for the website. Nonetheless, I quietly released RC1 but without any blog post.

Today, I'm happy to announce the release of 2.2.0 RC2, which is the first Symfony 2.2.0 to be easily testable by downloading an archive.

Since the last beta, quite a few bugs have been fixed and the new features have been refined (the full diff is available on Github).

If you have already upgraded to 2.2.0 beta2, here is a list of changes you might have to do:

  • The internal routes have been removed and replaced with a new configuration setting:

    framework:
    # ... fragments: { path: /_proxy }
  • The UserPassword class has been moved from Symfony\Component\Security\Core\Validator\Constraint\UserPassword to Symfony\Component\Security\Core\Validator\Constraints\UserPassword (note the s at the end of Constraints);
  • The default rendering strategy for fragment has been renamed to inline (render_default -> render_inline);

If you want to give it a try:

If you already have a project on beta1, here is a diff of the composer.json file (from Symfony 2.2.0-BETA1 to 2.2.0-RC2):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/composer.json b/composer.json
index 0981929..c2d7588 100644
--- a/composer.json
+++ b/composer.json
@@ -7,12 +7,12 @@
     "require": {
         "php": ">=5.3.3",
         "symfony/symfony": "2.2.*",
-        "doctrine/orm": ">=2.2.3,<2.4-dev",
-        "doctrine/doctrine-bundle": "1.0.*",
+        "doctrine/orm": "~2.2,>=2.2.3",
+        "doctrine/doctrine-bundle": "1.2.*",
         "twig/extensions": "1.0.*",
         "symfony/assetic-bundle": "2.1.*",
         "symfony/swiftmailer-bundle": "2.2.*",
-        "symfony/monolog-bundle": "2.1.*",
+        "symfony/monolog-bundle": "2.2.*",
         "sensio/distribution-bundle": "2.2.*",
         "sensio/framework-extra-bundle": "2.2.*",
         "sensio/generator-bundle": "2.2.*",
@@ -36,9 +36,12 @@
     "config": {
         "bin-dir": "bin"
     },
-    "minimum-stability": "dev",
+    "minimum-stability": "alpha",
     "extra": {
         "symfony-app-dir": "app",
-        "symfony-web-dir": "web"
+        "symfony-web-dir": "web",
+        "branch-alias": {
+            "dev-master": "2.2-dev"
+        }
     }
 }

If you want to update an existing project, update the dependencies in the composer.json file according to the versions found in the composer.json file from the Symfony Standard Edition and then follow the upgrade instructions (for Symfony, for the Symfony Standard Edition).

If you are only using some of the Symfony components, just update the versions of these components in your composer.json file.

And don't forget to report any issues you might find.

We are right on track with our release schedule and Symfony 2.2.0 final will be released at the end of the month.

Published in #Releases