Symfony 2.0.9 has been released earlier than expected to fix some annoying problems in 2.0.8:
it comes with Twig 1.5.1, which fixes a regression that made the
form_theme
tag fail;it comes with a fix for the
Filesystem
class;the
composer.json
file for 2.0.8 had the wrong version in it.
The CHANGELOG has all the details about the changes done in this release and you can also have a look at the full diff.
If you are starting a new project, you can get the Symfony Standard Edition distribution on the download page.
If you already have a project based on the Symfony Standard Edition 2.0.x, you can easily upgrade to 2.0.9 by getting the new deps and deps.lock files.
Then, run the vendors script:
$ ./bin/vendors install
And don't forget to clear your cache:
$ php ./app/console cache:clear
Remember that the Symfony2 Components are also available as standalone
libraries. You can get them via their dedicated read-only repositories on
Github (https://github.com/symfony/Finder
for instance), install them via
PEAR (pear install symfony2/Finder
), or even
install them via Composer.
Bravo!
Yeah, Twig 1.5.1 is great.
If you have issues with SensioGeneratorBundle, just version=origin/2.0 to your deps file.
after the "dev_old" cache folder problem (solved deleting such folder), I have this error
RuntimeException: Failed to write cache file "/srv/http/Symfony/app/cache/dev/classes.php".
on app_dev.php and a 404 on app.php
could anyone help me, please? thank you.
enrico stano, your cache folder doesn't have write permissions.
What about using Version 1.1.0 of JMS Security Extra Bundle? The DEPS points to 1.0.x
[JMSSecurityExtraBundle] git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git target=/bundles/JMS/SecurityExtraBundle version=origin/1.0.x
Georgi Katsarov, the cache folder permissions are ok. Any other idea?
@Fabien if you run "./bin/vendors install" it is not necessary to clear the cache, as the bin/vendors script does this as the last step.
Hi,
I've just downloaded v2.0.9 to use it to upgrade from 2.0.8 and I've noticed that we now have the vendor/bundles/Doctrine/Bundle/DoctrineBundle folder as well.
I've tried using it as opposed to the old folder (which still exists in 2.0.9) but I'm receiving the following error message:
Fatal error: Call to undefined method Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension::addUserProviderFactory() in /var/www/demo/vendor/bundles/Doctrine/Bundle/DoctrineBundle/DoctrineBundle.php on line 39
Call Stack: 0.0040 637656 1. {main}() /var/www/demo/web/app_localhost.php:0 0.0447 2785072 2. Symfony\Component\HttpKernel\Kernel->handle() /var/www/demo/web/app_localhost.php:40 0.0447 2785232 3. Symfony\Component\HttpKernel\Kernel->boot() /var/www/demo/app/bootstrap.php.cache:544 0.0548 3068096 4. Symfony\Component\HttpKernel\Kernel->initializeContainer() /var/www/demo/app/bootstrap.php.cache:513 0.0561 3076504 5. Symfony\Component\HttpKernel\Kernel->buildContainer() /var/www/demo/app/bootstrap.php.cache:779 0.0818 3514456 6. Doctrine\Bundle\DoctrineBundle\DoctrineBundle->build() /var/www/demo/app/bootstrap.php.cache:848
I've reverted the changes in autoload.php and AppKernel.php to be the ones that are in 2.0.x branch but it would be good to know if that folder ended up there by simple mistake or there was some merge that shouldn't have been done in GIT.
Thank you all for the hard work you've done for this project.
Kind regards.
Muy bueno!!, gracias SensioLabs. Saludos desde Uruguay.
hi, when I tried to upgrade to 2.09, I got there errors:
How can I fix it?
Yay! This is what I love about Symfony2 very active development.
For some reason we have been having real issues with the deps file. Not sure if there are others who have had same issues. Using the http:// git service for installing recently (intermittently admitted) causes RPC failures.
Simply changing the deps to the below fixed the issue.
[symfony] git=git://github.com/symfony/symfony.git version=v2.0.9
Using the git:// method is generally more reliable and actually faster from our experiences so far.
nice, twig updt )) thx.
Hey. Since i've installed 2.0.9 i have a problem - doctrine flush() is inserting 2 rows. Does anyone experienced this ? My test code: