The first beta of Symfony 2.6 was released on Monday. As always, backward compatibility means that you should be able to upgrade easily without changing anything in your code. Anyway, read the UPGRADE from 2.5 to 2.6 guide to learn more about new ways of doing things and deprecated features that will be removed in 3.0.

What's new in Symfony 2.6

Symfony 2.6 comes with more than 100 new features and enhancements. The full changelog from 2.5 to 2.6 BETA 1 is available on the repository, but here is a curated list of the most relevant ones:

Debugging improvements

Form improvements

  • Twitter Bootstrap form theme (lyrixx) (10272)
  • trace of form errors in the profiler (webmozart) (12054)
  • added "label_format" option (webmozart) (12050)
  • added Doctrine entity manager instance support for em option (egeloen) (12251)
  • choice children can be template customized like collection (adrienbrault) (9033)
  • add allow_html5 option to date and time FormType to disable HTML5 input type (csanquer) (8291)
  • improve transformation failure message by providing property path (jubianchi) (11318)
  • add allow_extra_fields option on forms (felds) (8133)

Validation improvements

Better extensibility/reusability improvements

Enhancements of existing features

  • handled circular references in the Serializer (dunglas) (12098)
  • made the stopwatch service always available (xabbuh) (11549)
  • exposed configuration of PropertyAccess (lyrixx) (11731)
  • added support for slicing nodes in Dom Crawler (Berat Doğan, beratdogan) (10699)
  • added compare method to CSS selector specificity (barryvdh) (11404)
  • added retrieval of Timer sections (umpirsky) (10851)
  • MongoDbSessionHandler supports auto expiry via configurable expiry_field (catchamonkey) (11668)
  • ResponseHeaderBag::clearCookie now accepts secure/httpOnly (adrienbrault) (11173)
  • added a switch to delete file after the response is send (WybrenKoelmans) (11212)
  • add support for streams as Process input (romainneutron) (10934)
  • added support for object-maps in YAML (polyfractal, nicolas-grekas) (10552)
  • added a way to match a specific scheme in RequestMatcher #10556 (ProPheT777) (10667)
  • enhanced PdoSessionHandler (Tobion) (10931)
  • added ParameterBag::getBoolean (peterjmit) (11086)
  • throw Exception on copying from an unreadable file or to an unwritable file (djotto) (10960)
  • added support for encoding and decoding namespaced xml (xmlns) (11375) (mattvick)
  • added support for skipping commands from ConsoleCommandEvent (tPl0ch) (9235)
  • added some methods to improve the handling of auto_mapping feature (goetas) (11815)
  • provide a compiler pass for doctrine to register namespace aliases (dbu) (10853)

Translation improvements

DX improvements

Various new features

Testing 2.6

You can test, hack, and play with Symfony 2.6 code in many different ways:

  • Create a new project via Composer (recommended):
1
$ php composer.phar create-project symfony/framework-standard-edition somewhere/ 2.6.0-BETA1
Published in #Releases