public function getSymfonyResponse($settings = null)
    {
        $headers = static::getCORSResponseHeaders();

        if (static::isOptionsRequest()) {
            return new \Symfony\Component\HttpFoundation\Response('', 200, $headers);
        }

        if (!$settings) {
            $settings = $this->getSettings();
        }
        $data = $this->getResponseObject($settings);

        $data['remote'] = [
            'url' => $settings->getFetchUrl(),
            'refreshAfter' => $this->refreshAfter
        ];
        $data['remote'][$settings->getFetchUrl()] = $data['settings']['main'];

        $response = new \Symfony\Component\HttpFoundation\JsonResponse($data, 200, $headers);

        if (($callback = $this->getCallback())) {
            $response->setCallback($callback);
        }

        return $response;
    }