Passes parameters to the called method.
the rest are defined in your route

@param \Illuminate\Http\Request $request

@return array
161772
final protected function getRequestParameters($request) {
		$parameters = $request->route()->parameters;
		array_unshift($parameters, $request);
		
		return $parameters;
	}
388711
public function cgetAction(Request $request)
    {
        $ids = array_map(
            function($item) {
                $parts = explode(';', $item);

                return ['type' => $parts[0], 'id' => $parts[1]];
            },
            array_filter(explode(',', $request->get('ids', '')))
        );

        return $this->handleView(
            $this->view(
                new CollectionRepresentation(
                    $this->get('sulu_page.teaser.manager')->find($ids, $this->getLocale($request)),
                    'teasers'
                )
            )
        );
    }
243217
public function getExtraParams(Request $request)
    {
        $params = array();
        foreach ($this->widgets as $widget) {
            $params = array_merge($params, $widget->getExtraParams($request));
        }

        return $params;
    }
145558
public function toArray($request)
    {
        return [
            'id'            => (int) $this->id,
            'language_code' => $this->language_code,
            'path'          => $this->path,
            'is_active'     => $this->is_active,
            'created_at'    => $this->created_at->toIso8601String(),
            'updated_at'    => $this->updated_at->toIso8601String()
        ];
    }
896654
private function getTemplateParameters(Request $request)
    {
        // When the media bundle is available, we show a link in the header to the media chooser
        $allBundles = $this->getParameter('kernel.bundles');
        $mediaChooserLink = null;

        if (array_key_exists('KunstmaanMediaBundle', $allBundles)) {
            $params = ['linkChooser' => 1];
            $cKEditorFuncNum = $request->get('CKEditorFuncNum');
            if (!empty($cKEditorFuncNum)) {
                $params['CKEditorFuncNum'] = $cKEditorFuncNum;
            }
            $mediaChooserLink = $this->generateUrl(
                'KunstmaanMediaBundle_chooser',
                $params
            );
        }

        return [
            'mediaChooserLink' => $mediaChooserLink,
        ];
    }
200730
public function bindParameters(Request $request)
    {
        // If the route has a regular expression for the host part of the URI, we will
        // compile that and get the parameter matches for this domain. We will then
        // merge them into this parameters array so that this array is completed.
        $params = $this->matchToKeys(
            array_slice($this->bindPathParameters($request), 1)
        );

        // If the route has a regular expression for the host part of the URI, we will
        // compile that and get the parameter matches for this domain. We will then
        // merge them into this parameters array so that this array is completed.
        if (! is_null($this->compiled->getHostRegex())) {
            $params = $this->bindHostParameters($request, $params);
        }

        return $this->parameters = $this->replaceDefaults($params);
    }
350665
protected function getTermData(Request $request)
    {
        $data = [];

        foreach ($this->repository as $field) {
            $data[$field->getName()] = $request->get($field->getName());
        }

        return $data;
    }
299025
public function infoAction(Request $request)
    {
        $securityContext = $this->get('security.context');

        $lines = [];

        if ($securityContext->isGranted('ROLE_SUPER_ADMIN')) {
            $lines[] = [
                'Project:',
                $this->container->getParameter('phlexible_gui.project.title').' '
                    .$this->container->getParameter('phlexible_gui.project.version'),
            ];
            $lines[] = [
                'Env:',
                $this->container->getParameter('kernel.environment').($this->container->getParameter(
                    'kernel.debug'
                ) ? ' [DEBUG]' : ''),
            ];
            $lines[] = ['Host:', $request->server->get('SERVER_NAME').' ['.PHP_SAPI.']'];

            $connection = $this->getDoctrine()->getConnection();
            /* @var $connection \Doctrine\DBAL\Connection */

            $lines[] = [
                'Default Database:',
                $connection->getHost().' / '.$connection->getDatabase().' ['.$connection->getDriver()->getName(
                ).']',
            ];

            $lines[] = ['Session:', $request->getSession()->getId().' ['.$request->server->get('REMOTE_ADDR').']'];

            $lines[] = [
                'User:',
                $this->getUser()->getUsername().' ['.implode(', ', $this->getUser()->getRoles()).']',
            ];

            $lines[] = ['UserAgent:', $request->server->get('HTTP_USER_AGENT')];
        } else {
            $lines[] = [
                'Project:',
                $this->container->getParameter('phlexible_gui.project.title').' '
                .$this->container->getParameter('phlexible_gui.project.version'),
            ];
        }

        $l1 = 0;
        $l2 = 0;
        foreach ($lines as $line) {
            if (strlen($line[0]) > $l1) {
                $l1 = strlen($line[0]);
            }
            if (isset($line[1]) && strlen($line[1]) > $l2) {
                $l2 = strlen($line[1]);
            }
        }
        $table = '';
        foreach ($lines as $line) {
            $table .= str_pad($line[0], $l1 + 2);
            $table .= str_pad($line[1], $l2 + 2);
            if (isset($line[2])) {
                $table .= $line[2];
            }
            $table .= PHP_EOL;
        }
        $out = '<pre>'.$table.'</pre>';

        return new Response($out);
    }
1090774
protected function bindHostParameters($request, $parameters)
    {
        preg_match($this->route->compiled->getHostRegex(), $request->getHost(), $matches);

        return array_merge($this->matchToKeys(array_slice($matches, 1)), $parameters);
    }
574797
private function getRoles($request)
    {
        $routeActions = $this->getActions($request);

        $roles = array_get($routeActions, 'is', []);

        return is_array($roles) ? $roles : (array) $roles;
    }
1317393
private function getValidatorOptions(Request $request): array
    {
        if (false === $request->attributes->has(Rest\Action::NAME)) {
            return [
                'groups' => [],
                'attribute' => 'violations',
                'throwable' => true,
            ];
        }

        return $request->attributes->get(Rest\Action::NAME)->getValidator();
    }
1243598
private function getSerializerOptions(Request $request): array
    {
        $validation = $this->getValidatorOptions($request);
        $context = [];

        if ($validation['groups']) {
            $context['groups'] = $validation['groups'];
        }

        if (isset($validation['populate']) && $request->attributes->has($validation['populate'])) {
            $context['object_to_populate'] = clone $request->attributes->get($validation['populate']);
        }

        switch ($request->getMethod()) {
            case Request::METHOD_PUT:
            case Request::METHOD_POST:
                return [$request->getContent(), $request->getContentType(), $context];
            case Request::METHOD_GET:
                if (!isset($context[ObjectNormalizer::DISABLE_TYPE_ENFORCEMENT])) {
                    $context[ObjectNormalizer::DISABLE_TYPE_ENFORCEMENT] = true;
                }

                return [$request->query->all(), null, $context];
        }

        return [[], null, $context];
    }
799386
private function getValuesFromRequest(Request $request)
    {
        $values = array_merge($request->query->all(), $request->request->all());
        $contentValues = json_decode($request->getContent(), true);
        if (is_array($contentValues)) {
            $values = array_merge($values, $contentValues);
        }

        return $values;
    }
1306352
public function get($request, $parameters = array())
        {
            $parameters = $this->generateParameters($parameters);
            $requestUrl = $this->parseGet($this->getAbsoluteUrl($request), $parameters);

            return $this->request($requestUrl);
        }
864672
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);
    }
232351
public function BasicParameters(&$Request) {
      $Request = array_merge($Request, array(
         'ServerHostname' => Url('/', TRUE),
         'ServerType' => Gdn::Request()->GetValue('SERVER_SOFTWARE'),
         'PHPVersion' => phpversion(),
         'VanillaVersion' => APPLICATION_VERSION
      ));
   }
918017
private function getParameters(Request $request, \ReflectionFunctionAbstract $controller) : array
    {
        if ($controller instanceof \ReflectionMethod) {
            $annotations = $this->annotationReader->getMethodAnnotations($controller);
        } else {
            // @todo annotation reading on generic functions is not available yet
            return [];
        }

        $parameters = [];
        foreach ($controller->getParameters() as $parameter) {
            $parameters[$parameter->getName()] = $parameter;
        }

        $result = [];

        foreach ($annotations as $annotation) {
            if ($annotation instanceof RequestParam) {
                $result[$annotation->getBindTo()] = $this->getParameter(
                    $annotation,
                    $controller,
                    $parameters,
                    $request
                );
            }
        }

        return $result;
    }