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 fromSymfony
to\Component \Security \Core \Validator \Constraint \UserPassword Symfony
(note the\Component \Security \Core \Validator \Constraints \UserPassword s
at the end ofConstraints
); - The
default
rendering strategy for fragment has been renamed toinline
(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.
@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.
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.
After an upgrade from a previous 2.2.0, I get this error:
Unrecognized options "router_proxy" under "framework"
@massimiliano see https://github.com/symfony/symfony-standard/commit/de036c89aede01fd2ec31faff760cee9b2a4be39
correct is fragments i thing it was a last minute change ;)
Thanks for the release, my upgrades are already in progress ...
For some reason, I am not getting the newest release when running composer update. Any idea on how to debug this?
i get some errors during upgrading from 2.1.7!
Same with RC3