Symfony2: 2.0 RC4 released
Symfony 2.0 RC4 is now available for download.
This release candidate fixes some minor bugs but the main change comes from
Doctrine annotations. If you are using the Symfony Standard Edition, you must
update your
autoload.php
file by adding the following code:
// at the top of the file
use Doctrine\Common\Annotations\AnnotationRegistry;
// at the end of the file
AnnotationRegistry::registerLoader(function($class) use ($loader) {
$loader->loadClass($class);
return class_exists($class, false);
});
AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
Some bundles have also been renamed to better follow the naming conventions.
So, to upgrading a Symfony Standard Edition application, update both the
deps
and deps.lock
files:
Then, run the vendors script:
./bin/vendors install
After upgrading, don't forget to clear your cache:
php ./app/console cache:clear
Help the Symfony project!
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
Comments
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.
In case you added more third party bundles in your project, this rename also affected FriendsOfSymfony/FOS bundles, and some other ones.
https://github.com/symfony/symfony-standard/compare/v2.0.0-RC3...v2.0.0-RC4
Another step closer to Final Version I hope :)
Keep up the great work, Symfers! One framework to rule them all ;)!
I have everything set to utf-8.
The accented letter i for example is returned like this: \u00c3\u00ada from the database. Idk how to fix this.
If i echo the data directly from the database it looks good, but if i json_encode it, all latin characters look like \u00c3\u00ada etc...
mabe is not Symfony related, but it was working before i pudated the files, and now it's not working... not much thinking to do, the update must had something to do with it. Mabe some weird php charset configuration was done?
char = "í"
plain php: json_encode( char ) = \u00ed
old symfony: json_encode( char ) = \u00ed
new symfony: json_encode( char ) = \u00c3\u00ad
Idk how this got solved by deleting that, i will investigate that by myself, but anyway...
Good luck with this project
regards
There's also a regression in the JMS/SecurityExtraBundle it seems - "Hello World" login demo page, login in as "user", follow the link for "Admin Only" and voila: "Hello World secured for Admins only!" - not what you'd like to see in production...