Symfony2 la beta5 est disponible

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Le beta 5 est désormais disponible sur le site officiel de Symfony.

Beaucoup l’attendait, mais la première Release Candidate n’est pas pour aujourd’hui.

Par contre, c’est officiel, c’est la dernière beta.

Fin de semaine prochaine devrait être disponible la première RC, est-ce la première d’une longue série ?

La Final Relase de Symfony2 devrait être disponible courant Juillet selon Fabien Potencier (source).

Alors quoi de neuf dans cette beta5 ?

Changements de la beta4 à la beta5

  1. UserProviderInterface::loadUser() has been renamed to UserProviderInterface::refreshUser() to make the goal of the method clearer.

  2. The $kernel property on WebTestCase is now static. Change any instances of $this->kernel in your functional tests to self::$kernel.

  3. The AsseticBundle has been moved to its own repository (it still bundled with Symfony SE).

  4. Yaml Component:
    * Exception classes have been moved to their own namespace
    * Yaml::load() has been renamed to Yaml::parse()

  5. The File classes from HttpFoundation have been refactored:

    1. Symfony\Component\HttpFoundation\File\File has a new API:

      It now extends \splFileInfo:
      – former getName() equivalent is getBasename(),
      – former getDirectory() equivalent is getPath(),
      – former getPath() equivalent is getRealPath().

      the move() method now creates the target directory when it does not exist,

      getExtension() and guessExtension() do not return the extension with a leading . anymore

    2. Your ads will be inserted here by

      Easy Plugin for AdSense.

      Please go to the plugin admin page to
      Paste your ad code OR
      Suppress this ad slot.

      Symfony\Component\HttpFoundation\File\UploadedFile has a new API:

      The constructor has a new Boolean parameter that must be set to true in test mode only in order to be able to move the file. This parameter is not intended to be set to true from outside of the core files.

      getMimeType() now always returns the mime type of the underlying file. Use getClientMimeType() to get the mime type from the request.

      getSize() now always returns the size of the underlying file. Use getClientSize() to get the file size from the request.

      Use getClientOriginalName() to retrieve the original name from the request.

  6. The extensions setting for Twig has been removed. There is now only one way to register Twig extensions, via the twig.extension tag.

  7. The stack of Monolog handlers now bubbles the records by default. To stop the propagation you need to configure the bubbling explicitly.

  8. Expanded the SerializerInterface, while reducing the number of public methods in the Serializer class itself breaking BC and adding component specific Exception classes.

  9. The FileType Form class has been heavily changed:
    * The temporary storage has been removed.
    * The file type type option has also been removed (the new behavior is the same as when the type was set to file before).
    * The file input is now rendered as any other input field.

  10. The em option of the Doctrine EntityType class now takes the entity manager name instead of the EntityManager instance. If you don’t pass this option, the default Entity Manager will be used as before.

  11. In the Console component: Command::getFullname() and Command::getNamespace() have been removed (Command::getName() behavior is now the same as the old Command::getFullname()).

  12. Default Twig form templates have been moved to the Twig bridge. Here is how you can reference them now from a template or in a configuration setting:





  13. All settings regarding the cache warmers have been removed.

  14. Response::isRedirected() has been merged with Response::isRedirect()

Tags: , ,

2 commentaires pour le sujet “Symfony2 la beta5 est disponible”

  1. Dam :

    Bientot la RC :)

    J’ai suivi les tuto sur ce blog. ils étaient vraiment utiles merci encore! Comptes-tu continuer à en publier? Par exemple un sur l’utilisation de FOSUserBundle?


  2. Emmanuel PEREIRA :

    Ce que je dois faire prochainement, c’est surtout mettre à jour les articles (écris sur une PR11 à la base), je vais attendre la RC pour cela, ensuite on verra en fonction de mon temps disponible. Je vais faire mon possible ;)

Laissez un commentaire :


created By