/**
  * Constructs a new JSON API controller
  * @param \ride\library\http\jsonapi\JsonApi $api
  * @param \ride\library\log\Log $log
  * @return null
  */
 public function __construct(JsonApi $jsonApi, JsonParser $jsonParser, MimeService $mimeService, ReflectionHelper $reflectionHelper)
 {
     $this->reflectionHelper = $reflectionHelper;
     $this->attributes = array();
     $this->relationships = array();
     $this->routes = array();
     parent::__construct($jsonApi, $jsonParser, $mimeService);
 }
 /**
  * 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())));
 }