src/Gzero/Api/Controller/ApiController.php
protected function respondWithSuccess($data, TransformerAbstract $transformer = null, array $headers = [])
    {
        if ($transformer) {
            return $this->respondTransformer($data, SymfonyResponse::HTTP_OK, $transformer, $headers);
        }
        return $this->respondWithSimpleSuccess($data);
    }
protected function respondWithSuccess($data, TransformerAbstract $transformer = null, array $headers = [])
    {
        if ($transformer) {
            return $this->respondTransformer($data, SymfonyResponse::HTTP_OK, $transformer, $headers);
        }
        return $this->respondWithSimpleSuccess($data);
    }
protected function respondWithSuccess ( $ data , TransformerAbstract $ transformer = null , array $ headers = [ ] ) { if ( $ transformer ) { return $ this -> respondTransformer ( $ data , SymfonyResponse :: HTTP_OK , $ transformer , $ headers ) ; } return $ this -> respondWithSimpleSuccess ( $ data ) ; }
Return success response in json format

@param mixed               $data        Response data
@param TransformerAbstract $transformer Transformer class
@param array               $headers     HTTP Header

@return mixed
Return success response in json format