A Week of Symfony #619 (5-11 November 2018)

This week, the upcoming Symfony 4.2 version added the loadEnv() method to replace the newly introduced loadForEnv() method. In addition a new Application::bootstrapEnv() method was introduced to define APP_ENV/APP_DEBUG from argv. Finally, the SymfonyCon Lisbon 2018 conference announced a scholarship program and a fundraising campaign. Symfony development highlights This week, 37 pull requests were merged…

New in Symfony 4.2: Clear form errors

Contributed by Colin O’Dell in #27580. Form events allow to dynamically modify Symfony Forms. They are used to show/hide fields depending on the value of other fields, to update the values of some field based on the value selected in another field, etc. When using events, it’s common to render the entire form and extract…

New in Symfony 4.2: Translation related improvements

Fallback for internationalized routes¶ Contributed by Thomas Calvet in #27957. In complex internationalized apps it’s common to define different contents for each regional locale (e.g. en_GB for British English and en_US for American English). However, routes (or at least some of them) could be the same for all regions, so it’s cumbersome to define duplicated…

New in Symfony 4.2: Detailed security voters decisions

Contributed by Laurent Voullemier in #27914. Security voters are the key feature of Symfony’s authorization mechanism. They provide the most granular way of checking permissions (e.g. "can this specific user edit the given item?"). In order to grant or deny permission, all the voters’ decisions are aggregated by the Access Decision Manager. Then, depending on…

New in Symfony 4.2: addLink() shortcut

Contributed by Kévin Dunglas in #28875. The WebLink component introduced in Symfony 3.3 provides tools to manage the Link HTTP header needed for Web Linking when using HTTP/2 Server Push as well as Resource Hints. In practice, it can improve the performance of your web apps dramatically. In order to simplify its usage, in Symfony…

A Week of Symfony #618 (29 October – 4 November 2018)

This week, Symfony 2.8.47, 3.4.18 and 4.1.7 maintenance versions were released. In addition, the first beta of Symfony 4.2 was released, including recently added new features like some debug:autowiring command improvements. Symfony development highlights This week, 51 pull requests were merged (35 in code and 16 in docs) and 31 issues were closed (22 in…

Symfony 4.2.0-BETA1 released

Symfony 4.2.0-BETA1 has just been released. Here is a list of the most important changes: feature #28622 [VarDumper] add caster for Memcached (@jschaedl) feature #29042 [DI] use filte _var() instead of XmlUtils::phpize() in EnvVarProcessor (@nicolas-grekas) feature #29047 Revert "[HttpFoundation] Adds getAcceptableFormats() method for Request" (@Tobion) feature #29046 [Bridge/Doctrine] remove workarounds from the past (@nicolas-grekas) feature…

Symfony 4.1.7 released

Symfony 4.1.7 has just been released. Here is a list of the most important changes: bug #28820 [DependencyInjection] Fix tags on multiple decorated service (@Soner Sayakci) bug #29020 Fix in _get() for boolean values (@deguif) bug #28955 [Messenger] send using the routin _key for AMQP transport (@nicolas-grekas) bug #28960 also clean away the N _AUT…