Checklist before you upgrade your symfony2.0 to symfony2.1 version

Symfony upgraded version comes with lot of fixes issue. They have added lots of new features but i felt disappointed in terms of performance. The performance has been falls around 30 to 40% in symfony2.1 version.

The following things has been changed:-

1. Doctrine

The DoctrineBundle is moved from the Symfony repository to the Doctrine repository. Therefore you should change the namespace of this bundle in your AppKernel.php:

Before: new Symfony\Bundle\DoctrineBundle\DoctrineBundle()
After: new Doctrine\Bundle\DoctrineBundle\DoctrineBundle()

2. HttpFoundation

Locale management was moved from the Session class to the Request class.

Configuring the default locale

Before:

framework:
session:
default_locale: fr

After:

framework:
default_locale: fr

Continue reading

Advertisements