Request/ParamConverter/ServiceParamConverter.php
private function extractArguments(Request $request, array $options)
    {
        $arguments = isset($options['arguments']) && is_array($options['arguments']) ? $options['arguments'] : [];

        return array_map(
            function ($argument) use ($request) {
                return $request->attributes->get($argument);
            },
            $arguments
        );
    }
private function extractArguments(Request $request, array $options)
    {
        $arguments = isset($options['arguments']) && is_array($options['arguments']) ? $options['arguments'] : [];

        return array_map(
            function ($argument) use ($request) {
                return $request->attributes->get($argument);
            },
            $arguments
        );
    }
@param Request $request
@param array   $options

@return array