예제 #1
0
 /**
  * @param  Api                                        $api
  * @return \Symfony\Component\HttpFoundation\Response
  */
 private function retrieveSecureKey(Api $api)
 {
     $response = Response::create($api->getSecureKey());
     $response->headers->add(['Content-Type' => 'application/octet-stream', 'Content-disposition' => sprintf('filename=%s.key', $api->getApiKey())]);
     return $response;
 }