protected function setDefaultLists(FirewallInterface $firewall, array $lists)
    {
        foreach ($lists as $listName => $state) {
            if (isset($this->lists[$listName])) {
                $list = $this->lists[$listName];
                $firewall->addList($list, $listName, $state);
            } else {
                throw new \Exception(sprintf('Firewall list "%s" not found.', $listName));
            }
        }

        return $this;
    }
protected function setDefaultLists(FirewallInterface $firewall, array $lists)
    {
        foreach ($lists as $listName => $state) {
            if (isset($this->lists[$listName])) {
                $list = $this->lists[$listName];
                $firewall->addList($list, $listName, $state);
            } else {
                throw new \Exception(sprintf('Firewall list "%s" not found.', $listName));
            }
        }

        return $this;
    }
protected function setDefaultLists ( FirewallInterface $ firewall , array $ lists ) { foreach ( $ lists as $ listName => $ state ) { if ( isset ( $ this -> lists [ $ listName ] ) ) { $ list = $ this -> lists [ $ listName ] ; $ firewall -> addList ( $ list , $ listName , $ state ) ; } else { throw new \ Exception ( sprintf ( 'Firewall list "%s" not found.' , $ listName ) ) ; } } return $ this ; }
Set the default lists of the firewall

@param FirewallInterface $firewall Firewall
@param array             $lists    Input lists

@return $this
Set the default lists of the firewall