New in Symfony 5.4: Faster Security Voters

Contributed by Jérémy Derussé in #43066.

Security Voters are the recommended way to check for permissions in Symfony applications. They allow to centralize the permission logic so you can reuse it from controllers, templates and services. During runtime, whenever Symfony finds a isGranted() method call, it iterates over all the voters, and stops when the configured access decision strateg

4y | Symfony
New in Symfony 5.4: Nested Validation Attributes

Contributed by Alexandre Daubois in #41994.

In Symfony 5.2 we added a feature to define validation constraints as PHP attributes. Attributes were very recent at that time, because they had just been added to PHP 8.0. The only caveat was that you couldn't nest PHP attributes, so you couldn't use them with constraints such as AtLeastOneOf and Collection. Thankfully, PHP 8.1, released on Nov

4y | Symfony
Symfony 5.4.0-BETA1 released

Symfony 5.4.0-BETA1 has just been released. Here is a list of the most important changes: feature #43916 [PropertyInfo] Support the list pseudo-type (@derrabus) feature #43850 Add completion for DebugConfig name and path arguments (@eclairia, @Adrien Jourdier) feature #43838 feat: add completion for DebugAutowiring search argument (@eclairia, @Adrien Jourdier) feature #38464 [Routing] Add support for aliasing routes (@Lctrs) feature #43923 [Console] Open CompleteCommand for cust

4y | Symfony
Symfony 6.0.0-BETA1 released

Symfony 6.0.0-BETA1 has just been released. Here is a list of the most important changes: feature #43916 [PropertyInfo] Support the list pseudo-type (@derrabus) feature #43850 Add completion for DebugConfig name and path arguments (@eclairia, @Adrien Jourdier) feature #43838 feat: add completion for DebugAutowiring search argument (@eclairia, @Adrien Jourdier) feature #38464 [Routing] Add support for aliasing routes (@Lctrs) feature #43923 [Console] Open CompleteCommand for cust

4y | Symfony
A Week of Symfony #775 (1-7 November 2021)

This week, Symfony 5.4.0-BETA1 and 6.0.0-BETA1 versions were published in preparation for their final release at the end of November 2021. We also published the first articles about the new features of Symfony 5.4. Lastly, we announced more speakers for the upcoming SymfonyWorld Online 2021 Winter Edition conference (December 9-10, 2021).

Symfony development highlights

This week, 74 pull requests were merged (63 in code and 11 in docs) and 41 issues were closed (33 in code and

4y | Symfony
New in Symfony 5.4: Controller Changes

Symfony Controllers are the "glue code" that runs some logic and calls some services to serve each application route. They are a very stable piece of software that we rarely change. However, in Symfony 5.4 we've made some changes to controllers that may impact your applications.

Deprecated the Request::get() Method

        Contributed by Roland Franssen 
        in #42392.

The Symfony Request Object is a

4y | Symfony
New in Symfony 5.4: Route Aliasing

Contributed by Jérôme Parmentier in #38464.

When refactoring applications, especially if you work on a legacy application, it's common to need to change the name of some routes. Some renames might be considered cosmetic (e.g. rename admin_dashboard to admin) but others are essential for the new application because they change the route name pattern entirely (e.g. rename api_register_custo

4y | Symfony
Calling SaaS providers to back their Symfony bridge

Would you like to put your brand ahead of the Symfony community? Make your Corporate social responsibility (CSR) policy a reality? The-Fast-Track book for v6 or SymfonyWorld Online conference next month are still open for sponsorship!

But in this blog post, I'd like to make a specific call to SaaS providers for whom Symfony has a bridge (aka plugins).

Are you working at Amazon? Or know someone who could help with this? Mailchimp anyone? Mailgun, Mailjet, OhMySmtp, Postmark, Se

4y | Symfony
New in Symfony 5.4: PHP Enumerations Support

PHP Enumerations, or "PHP enums" for short, is one of the most anticipated new features of PHP 8.1 (released on November 25, 2021). Their most common use case is to group several related values. In previous PHP versions you had to define a series of related constants to achieve that. In PHP 8.1 you can do this:

    1

2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 // Defining the enumeration and its values namespace App\Config;

enum TextAlign { cas

4y | Symfony
New in Symfony 5.4: PHP Enumerations Support

PHP Enumerations, or "PHP enums" for short, is one of the most anticipated new features of PHP 8.1 (released on November 25, 2021). Their most common use case is to group several related values. In previous PHP versions you had to define a series of related constants to achieve that. In PHP 8.1 you can do this:

    1

2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 // Defining the enumeration and its values namespace App\Config;

enum TextAlign { case Left; case Ce

4y | 1x Buon post | Symfony

Membri



Ricerca