protected function getMetaResponse($meta, $statusCode = Response::HTTP_OK)
    {
        $this->checkParameters();

        /** @var ResponsesInterface $responses */
        $responses       = $this->getIntegration()->getFromContainer(ResponsesInterface::class);
        $encoder         = $this->codecMatcher->getEncoder();
        $outputMediaType = $this->codecMatcher->getEncoderRegisteredMatchedType();
        $content         = $encoder->encodeMeta($meta);

        return $responses->getResponse($statusCode, $outputMediaType, $content, $this->supportedExtensions);
    }
protected function getMetaResponse($meta, $statusCode = Response::HTTP_OK)
    {
        $this->checkParameters();

        /** @var ResponsesInterface $responses */
        $responses       = $this->getIntegration()->getFromContainer(ResponsesInterface::class);
        $encoder         = $this->codecMatcher->getEncoder();
        $outputMediaType = $this->codecMatcher->getEncoderRegisteredMatchedType();
        $content         = $encoder->encodeMeta($meta);

        return $responses->getResponse($statusCode, $outputMediaType, $content, $this->supportedExtensions);
    }
protected function getMetaResponse ( $ meta , $ statusCode = Response :: HTTP_OK ) { $ this -> checkParameters ( ) ; /** @var ResponsesInterface $responses */ $ responses = $ this -> getIntegration ( ) -> getFromContainer ( ResponsesInterface :: class ) ; $ encoder = $ this -> codecMatcher -> getEncoder ( ) ; $ outputMediaType = $ this -> codecMatcher -> getEncoderRegisteredMatchedType ( ) ; $ content = $ encoder -> encodeMeta ( $ meta ) ; return $ responses -> getResponse ( $ statusCode , $ outputMediaType , $ content , $ this -> supportedExtensions ) ; }
Get response with meta information only.

@param array|object $meta       Meta information.
@param int          $statusCode

@return Response
Get response with meta information only .