Symfony2 bêta1 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.

Elle était annoncée et voici qu’elle est désormais disponible en téléchargement sur le site officiel de Symfony2.

Alors quoi de neuf ?

Comme tout le monde le sait déjà, les formulaires ont été entièrement revus, mais au titre des modifications depuis la PR12 voici la liste :

  1. The CSRF secret configuration has been moved to a mandatory global secret setting (as the secret is now used for everything and not just CSRF):

    Before:

    framework:
        csrf_protection:
            secret: S3cr3t
    

    After:

    framework:
        secret: S3cr3t
    
  2. The File::getWebPath() and File::rename() methods have been removed, as well as the framework.document_root configuration setting.

  3. 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.

    The session configuration has been refactored:

    1. The class option has been removed (use the session.class parameter instead);
    2. The PDO session storage configuration has been removed (a cookbook recipe is in the work);
    3. The storage_id option now takes a service id instead of just part of it.
  4. The DoctrineMigrationsBundle and DoctrineFixturesBundle bundles have been moved to their own repositories.
  5. The form framework has been refactored extensively (more information in the documentation).
  6. The trans tag does not accept a message as an argument anymore:

    {% trans "foo" %} {% trans foo %}
    

    Use the long version the tags or the filter instead:

    {% trans %}foo{% endtrans %}
    {{ foo|trans }}
    

    This has been done to clarify the usage of the tag and filter and also to make it clearer when the automatic output escaping rules are applied (see the doc for more information).

  7. Some methods in the DependencyInjection component’s ContainerBuilder and Definition classes have been renamed to be more specific and consistent:

    Before :

    $container->remove('my_definition');
    $definition->setArgument(0, 'foo');
    

    After :

    $container->removeDefinition('my_definition');
    $definition->replaceArgument(0, 'foo');
    
  8. In the rememberme configuration, the token_provider key now expects a real service id instead of only a suffix.

Annonce officielle sur le blog de Symfony et plus d’infos ici.

Tags: , , ,


Laissez un commentaire :

*


created By ooyes.net