code: 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
          );
      }
docs: @param Request $request
  @param array   $options
  
  @return array