public function getContentType() { return $this->getFormat($this->headers->get('CONTENT_TYPE')); }
/** * @return array */ public function getPostData() { if ('json' === $this->_internalRequest->getContentType()) { return (array) json_decode($this->_internalRequest->getContent(), true); } else { return $this->_internalRequest->request->all(); } }