Introduced a new FirewallConfig class¶

A long-standing demand of Symfony developers was to have a class representing the current firewall configuration. In Symfony 3.2, we introduced a new Symfony\Bundle\SecurityBundle\Security\FirewallConfig class which provides information such as its name, provider, context, entry point, access denied URL, etc.

The firewall configuration can also be accessed through the getFirewallConfig(Request $request) method of the FirewallMap and through the getConfig() method of the FirewallContext .

This new class is useful to get the firewall configuration inside an authentication listener and even from the Symfony profiler, as explained below.