public function unrecognizedCall($unrecognizedPath = '')
    {
        $this->start();

        if ($unrecognizedPath === '') {
            $message = t('Resource not specified');
        } else {
            $message = t(/*i18n: %1$s is a path, %2$s is an HTTP method*/'Unknown resource %1$s for %2$s method', $unrecognizedPath, $this->request->getMethod());
        }
        $result = $this->buildErrorResponse(
            $message,
            Response::HTTP_NOT_FOUND
        );

        return $this->finish($result);
    }
public function unrecognizedCall($unrecognizedPath = '')
    {
        $this->start();

        if ($unrecognizedPath === '') {
            $message = t('Resource not specified');
        } else {
            $message = t(/*i18n: %1$s is a path, %2$s is an HTTP method*/'Unknown resource %1$s for %2$s method', $unrecognizedPath, $this->request->getMethod());
        }
        $result = $this->buildErrorResponse(
            $message,
            Response::HTTP_NOT_FOUND
        );

        return $this->finish($result);
    }
public function unrecognizedCall ( $ unrecognizedPath = '' ) { $ this -> start ( ) ; if ( $ unrecognizedPath === '' ) { $ message = t ( 'Resource not specified' ) ; } else { $ message = t ( /*i18n: %1$s is a path, %2$s is an HTTP method*/ 'Unknown resource %1$s for %2$s method' , $ unrecognizedPath , $ this -> request -> getMethod ( ) ) ; } $ result = $ this -> buildErrorResponse ( $ message , Response :: HTTP_NOT_FOUND ) ; return $ this -> finish ( $ result ) ; }
What to do if the entry point is not recognized.

@param string $unrecognizedPath

@return Response
What to do if the entry point is not recognized .