public function getAcceptableContentTypes()
    {
        if (null !== $this->acceptableContentTypes) {
            return $this->acceptableContentTypes;
        }

        return $this->acceptableContentTypes = array_keys(AcceptHeader::fromString($this->headers->get('Accept'))->all());
    }
public function getAcceptableContentTypes()
    {
        if (null !== $this->acceptableContentTypes) {
            return $this->acceptableContentTypes;
        }

        return $this->acceptableContentTypes = array_keys(AcceptHeader::fromString($this->headers->get('Accept'))->all());
    }
public function getAcceptableContentTypes ( ) { if ( null !== $ this -> acceptableContentTypes ) { return $ this -> acceptableContentTypes ; } return $ this -> acceptableContentTypes = array_keys ( AcceptHeader :: fromString ( $ this -> headers -> get ( 'Accept' ) ) -> all ( ) ) ; }
Gets a list of content types acceptable by the client browser.

@return array List of content types in preferable order
Gets a list of content types acceptable by the client browser .