src/Controller/Input.php
public function getQueryParams(array $list = null)
    {
        return isset($list)
            ? $this->listQueryParams($list)
            : (array)$this->getRequest()->getQueryParams();
    }
public function getQueryParams(array $list = null)
    {
        return isset($list)
            ? $this->listQueryParams($list)
            : (array)$this->getRequest()->getQueryParams();
    }
public function getQueryParams ( array $ list = null ) { return isset ( $ list ) ? $ this -> listQueryParams ( $ list ) : ( array ) $ this -> getRequest ( ) -> getQueryParams ( ) ; }
Get the request query parameters.

<code>
// Get all parameters
$params = $this->getQueryParams();

// Get specific parameters, specifying defaults for 'bar' and 'zoo'
list($foo, $bar, $zoo) = $this->getQueryParams(['foo', 'bar' => 10, 'zoo' => 'monkey']);
</code>

@param array $list
@return array
Get the request query parameters .