protected function setEntries(FirewallInterface $firewall, $config)
    {
        $entries = (isset($config['entries']) ? $config['entries'] : array());

        $blackEntries = array_keys($entries, false);
        $whiteEntries = array_keys($entries, true);

        if (count($blackEntries)) {
            $firewall->addList($blackEntries, 'blackedOptions', false);
        }

        if (count($whiteEntries)) {
            $firewall->addList($whiteEntries, 'whitedOptions', true);
        }

        return $this;
    }
protected function setEntries(FirewallInterface $firewall, $config)
    {
        $entries = (isset($config['entries']) ? $config['entries'] : array());

        $blackEntries = array_keys($entries, false);
        $whiteEntries = array_keys($entries, true);

        if (count($blackEntries)) {
            $firewall->addList($blackEntries, 'blackedOptions', false);
        }

        if (count($whiteEntries)) {
            $firewall->addList($whiteEntries, 'whitedOptions', true);
        }

        return $this;
    }
protected function setEntries ( FirewallInterface $ firewall , $ config ) { $ entries = ( isset ( $ config [ 'entries' ] ) ? $ config [ 'entries' ] : array ( ) ) ; $ blackEntries = array_keys ( $ entries , false ) ; $ whiteEntries = array_keys ( $ entries , true ) ; if ( count ( $ blackEntries ) ) { $ firewall -> addList ( $ blackEntries , 'blackedOptions' , false ) ; } if ( count ( $ whiteEntries ) ) { $ firewall -> addList ( $ whiteEntries , 'whitedOptions' , true ) ; } return $ this ; }
Set up firewall lists from independent input

@param FirewallInterface $firewall Firewall interface
@param array             $config   Reference to the configuration

@return $this
Set up firewall lists from independent input