Archives


Master Symfony2 fundamentals

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com

Discover the SensioLabs Support

Access to the SensioLabs Competency Center for an exclusive and tailor-made support on Symfony
sensiolabs.com

Fabien Potencier
Symfony 2.2.0 RC2 released
by Fabien Potencier – February 11, 2013 – 8 comments

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:
  • 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:

  • Create a new project via Composer (recommended):

    1
    $ php composer.phar create-project symfony/framework-standard-edition somewhere/ 2.2.0-RC2
    
  • Download a ready-made project from the Standard Edition;

  • Download some components via Github downloads: https://github.com/symfony/{COMPONENT_NAME}/archive/v2.2.0-RC2.zip;

  • Install some components via the PEAR packages.

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.

Comments RSS

  • Christophe Coevoet
    #1 Christophe Coevoet said on the 2013/02/11 at 17:40
    @fabpot as Composer has a --prefer-dist option since a few months, you should be able to generate archives even when dev versions are selected by enabling this flag.
  • Fabien Potencier
    #2 Fabien Potencier said on the 2013/02/11 at 17:53
    That's the change I made to the distribution bundle, but I wanted to get "real" alpha versions for the package, not just downloadable archives of a commit.
  • Massimiliano Arione
    #3 Massimiliano Arione said on the 2013/02/11 at 18:06
    After an upgrade from a previous 2.2.0, I get this error:

    Unrecognized options "router_proxy" under "framework"
  • Gordon Franke
    #4 Gordon Franke said on the 2013/02/11 at 19:15
    @massimiliano see https://github.com/symfony/symfony-standard/commit/de036c89aede01fd2ec31faff760cee9b2a4be39

    correct is fragments i thing it was a last minute change ;)
  • Peter Kokot
    #5 Peter Kokot said on the 2013/02/11 at 19:39
    Thanks for the release, my upgrades are already in progress ...
  • Sebastian Göttschkes
    #6 Sebastian Göttschkes said on the 2013/02/12 at 19:58
    For some reason, I am not getting the newest release when running composer update. Any idea on how to debug this?
  • beter bocek
    #7 beter bocek said on the 2013/02/18 at 10:29
    i get some errors during upgrading from 2.1.7!

    - symfony/framework-bundle v2.2.0-RC2 requires symfony/config >=2.2,<2.3-dev -> no matching package found.
    - Installation request for doctrine/doctrine-bundle 1.2.* -> satisfiable by doctrine/doctrine-bundle v1.2.0-beta1.
    - Conclusion: don't install symfony/symfony v2.2.0-RC2
  • Jens Averkamp
    #8 Jens Averkamp said on the 2013/02/25 at 10:31
    Same with RC3