src/Direct/Router/Call.php
public function getResponse($result)
    {
        $content = $result->getContent();

        if ($result->headers->get('content-type') == 'application/json'){
            $content = json_decode($result->getContent(),true);
        }

        return array(
          'type' => 'rpc',
          'tid' => $this->tid,
          'action' => $this->action,
          'method' => $this->method,
          'result' => $content
        );
    }
public function getResponse($result)
    {
        $content = $result->getContent();

        if ($result->headers->get('content-type') == 'application/json'){
            $content = json_decode($result->getContent(),true);
        }

        return array(
          'type' => 'rpc',
          'tid' => $this->tid,
          'action' => $this->action,
          'method' => $this->method,
          'result' => $content
        );
    }
public function getResponse ( $ result ) { $ content = $ result -> getContent ( ) ; if ( $ result -> headers -> get ( 'content-type' ) == 'application/json' ) { $ content = json_decode ( $ result -> getContent ( ) , true ) ; } return array ( 'type' => 'rpc' , 'tid' => $ this -> tid , 'action' => $ this -> action , 'method' => $ this -> method , 'result' => $ content ) ; }
Return a result wrapper to ExtDirect method call.

@param  array $result
@return array
Return a result wrapper to ExtDirect method call .