private function getControllerParams(Request $request, $controllerString)
    {
        $query = $request->query->all();
        $methodParameters = $this->getControllerParameters($controllerString);

        $parameters = array();
        foreach ($methodParameters as $methodParameter) {
            $parameterName = $methodParameter->getName();
            if ('request' === $parameterName) continue;

            if (isset($query[$parameterName])) {
                $parameters[$parameterName] = $query[$parameterName];
                unset($query[$parameterName]);
            }
        }

        return array($parameters, $query);
    }
private function getControllerParams(Request $request, $controllerString)
    {
        $query = $request->query->all();
        $methodParameters = $this->getControllerParameters($controllerString);

        $parameters = array();
        foreach ($methodParameters as $methodParameter) {
            $parameterName = $methodParameter->getName();
            if ('request' === $parameterName) continue;

            if (isset($query[$parameterName])) {
                $parameters[$parameterName] = $query[$parameterName];
                unset($query[$parameterName]);
            }
        }

        return array($parameters, $query);
    }
private function getControllerParams ( Request $ request , $ controllerString ) { $ query = $ request -> query -> all ( ) ; $ methodParameters = $ this -> getControllerParameters ( $ controllerString ) ; $ parameters = array ( ) ; foreach ( $ methodParameters as $ methodParameter ) { $ parameterName = $ methodParameter -> getName ( ) ; if ( 'request' === $ parameterName ) continue ; if ( isset ( $ query [ $ parameterName ] ) ) { $ parameters [ $ parameterName ] = $ query [ $ parameterName ] ; unset ( $ query [ $ parameterName ] ) ; } } return array ( $ parameters , $ query ) ; }
Searches in the request for the parameters required by the destination controller

@param Request $request
@param string $controllerString

@return array

@throws AjaxBlocksException
Searches in the request for the parameters required by the destination controller