protected function setDefault(FirewallInterface $firewall, $param, $value, $config)
    {
        $configModel = $this->configModel[$param];

        switch ($param) {
            case 'lists':
                if (is_array($value)) {
                    $this->setDefaultLists($firewall, $value);
                }
                break;
            case 'entries':
                $this->setEntries($firewall, $config, $value);
                break;
            default:
                if (!is_null($value)) {
                    $method = $configModel['method'];
                    $firewall->$method($value);
                }
        }

        return $this;
    }
protected function setDefault(FirewallInterface $firewall, $param, $value, $config)
    {
        $configModel = $this->configModel[$param];

        switch ($param) {
            case 'lists':
                if (is_array($value)) {
                    $this->setDefaultLists($firewall, $value);
                }
                break;
            case 'entries':
                $this->setEntries($firewall, $config, $value);
                break;
            default:
                if (!is_null($value)) {
                    $method = $configModel['method'];
                    $firewall->$method($value);
                }
        }

        return $this;
    }
protected function setDefault ( FirewallInterface $ firewall , $ param , $ value , $ config ) { $ configModel = $ this -> configModel [ $ param ] ; switch ( $ param ) { case 'lists' : if ( is_array ( $ value ) ) { $ this -> setDefaultLists ( $ firewall , $ value ) ; } break ; case 'entries' : $ this -> setEntries ( $ firewall , $ config , $ value ) ; break ; default : if ( ! is_null ( $ value ) ) { $ method = $ configModel [ 'method' ] ; $ firewall -> $ method ( $ value ) ; } } return $ this ; }
Set a default value for a configuration parameter

@param Firewall $firewall Firewall
@param string   $param    Parameter name
@param string   $value    Parameter value
@param array    $config   Reference to the configuration

@return $this
Set a default value for a configuration parameter