Exemplo n.º 1
0
 /**
  * Check headers to see if we should localize the content, if so, create a new response and get it to do the
  * localization.
  *
  * @return ApiResponse
  */
 public function getResponse()
 {
     $apiResponse = new ApiResponse();
     if ($region = RequestFacade::header('Accept-Region')) {
         $apiResponse->setLocalizationRegion($region);
     }
     return $apiResponse;
 }