コード例 #1
0
 /**
  * Sets the response after every action based on the document
  * @return null
  */
 public function postAction()
 {
     parent::postAction();
     if (!$this->document->hasContent()) {
         return;
     }
     $this->response->setHeader(Header::HEADER_CONTENT_LANGUAGE, strtolower(str_replace('_', '-', $this->api->getOrmManager()->getLocale())));
 }