src/Sulu/Bundle/AdminBundle/Admin/JsConfig.php
public function addParameters(array $params)
    {
        if (!is_array($params)) {
            throw new \InvalidArgumentException('$params has to be an array');
        }
        $this->parameters = array_merge($this->parameters, $params);
    }
public function addParameters(array $params)
    {
        if (!is_array($params)) {
            throw new \InvalidArgumentException('$params has to be an array');
        }
        $this->parameters = array_merge($this->parameters, $params);
    }
public function addParameters ( array $ params ) { if ( ! is_array ( $ params ) ) { throw new \ InvalidArgumentException ( '$params has to be an array' ) ; } $ this -> parameters = array_merge ( $ this -> parameters , $ params ) ; }
adds array of parameters.

@param array $params

@throws \InvalidArgumentException
adds array of parameters .