public function handle()
    {
        // get information about the REST-request
        $this->get();

        if ($this->requestMethod === 'GET' && $this->typo3Cache->hasCacheEntry($this->url, $_GET)) {
            return $this->handleRequestByTypo3Cache();
        }

        // if no cache exist: restler should handle the request
        if (Defaults::$useVendorMIMEVersioning) {
            $this->responseFormat = $this->negotiateResponseFormat();
        }
        $this->route();
        $this->negotiate();
        $this->preAuthFilter();
        $this->authenticate();
        $this->postAuthFilter();
        $this->validate();
        $this->preCall();
        $this->call();
        $this->compose();
        $this->postCall();

        if ($this->responseFormat instanceof JsonFormat) {
            // return stdClass-object (instead of an array)
            return $this->getRestApiJsonFormat()->decode($this->responseData);
        }
        return $this->responseFormat->decode($this->responseData);
    }
public function handle()
    {
        // get information about the REST-request
        $this->get();

        if ($this->requestMethod === 'GET' && $this->typo3Cache->hasCacheEntry($this->url, $_GET)) {
            return $this->handleRequestByTypo3Cache();
        }

        // if no cache exist: restler should handle the request
        if (Defaults::$useVendorMIMEVersioning) {
            $this->responseFormat = $this->negotiateResponseFormat();
        }
        $this->route();
        $this->negotiate();
        $this->preAuthFilter();
        $this->authenticate();
        $this->postAuthFilter();
        $this->validate();
        $this->preCall();
        $this->call();
        $this->compose();
        $this->postCall();

        if ($this->responseFormat instanceof JsonFormat) {
            // return stdClass-object (instead of an array)
            return $this->getRestApiJsonFormat()->decode($this->responseData);
        }
        return $this->responseFormat->decode($this->responseData);
    }
public function handle ( ) { // get information about the REST-request $ this -> get ( ) ; if ( $ this -> requestMethod === 'GET' && $ this -> typo3Cache -> hasCacheEntry ( $ this -> url , $ _GET ) ) { return $ this -> handleRequestByTypo3Cache ( ) ; } // if no cache exist: restler should handle the request if ( Defaults :: $ useVendorMIMEVersioning ) { $ this -> responseFormat = $ this -> negotiateResponseFormat ( ) ; } $ this -> route ( ) ; $ this -> negotiate ( ) ; $ this -> preAuthFilter ( ) ; $ this -> authenticate ( ) ; $ this -> postAuthFilter ( ) ; $ this -> validate ( ) ; $ this -> preCall ( ) ; $ this -> call ( ) ; $ this -> compose ( ) ; $ this -> postCall ( ) ; if ( $ this -> responseFormat instanceof JsonFormat ) { // return stdClass-object (instead of an array) return $ this -> getRestApiJsonFormat ( ) -> decode ( $ this -> responseData ) ; } return $ this -> responseFormat -> decode ( $ this -> responseData ) ; }
Override parent method...because we must return the data of the REST-API request and we need NO exception-handling!

@return mixed can be a primitive or array or object
Override parent method ... because we must return the data of the REST - API request and we need NO exception - handling!