public function getFirewall($path = null)
    {
        if (!$path) {
            $path = $this->getCurrentPathRelativeToBase();
        }
        foreach ($this->firewalls as $firewall) {
            if ($firewall->isPathCovered($path)) {
                return $firewall;
            }
        }
        return null;
    }
public function getFirewall($path = null)
    {
        if (!$path) {
            $path = $this->getCurrentPathRelativeToBase();
        }
        foreach ($this->firewalls as $firewall) {
            if ($firewall->isPathCovered($path)) {
                return $firewall;
            }
        }
        return null;
    }
public function getFirewall ( $ path = null ) { if ( ! $ path ) { $ path = $ this -> getCurrentPathRelativeToBase ( ) ; } foreach ( $ this -> firewalls as $ firewall ) { if ( $ firewall -> isPathCovered ( $ path ) ) { return $ firewall ; } } return null ; }
Get the firewall with the specific path.
@param string $path
@return FirewallInterface
Get the firewall with the specific path .