From d5d12a64f8fe18a9a667c3f8e466d46e12b05385 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 5 Feb 2018 12:16:18 +0100 Subject: [PATCH] Mentioned the new FirewallConfig class --- components/security/firewall.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/security/firewall.rst b/components/security/firewall.rst index c3fe82f4c49..1f218c7cfc1 100644 --- a/components/security/firewall.rst +++ b/components/security/firewall.rst @@ -88,6 +88,21 @@ will be dispatched by the HttpKernel at the beginning of each request it processes. This way, the firewall may prevent the user from going any further than allowed. +Firewall Config +~~~~~~~~~~~~~~~ + +.. versionadded:: 3.2 + The ``FirewallConfig`` class was introduced in Symfony 3.2. + +The information about a given firewall, such as its name, provider, context, +entry point and access denied URL, is provided by instances of the +:class:`Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig` class. + +This object can be accessed through the ``getFirewallConfig(Request $request)`` +method of the :class:`Symfony\\Component\\Security\\Http\\FirewallMap` class and +through the ``getConfig()`` method of the +:class:`Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext` class. + .. _firewall_listeners: Firewall Listeners