src/main/php/htmlpassthrough/HtmlFilePassThrough.php
public function resolve(Request $request, Response $response, UriPath $uriPath)
    {
        $routeName = $uriPath->remaining('index.html');
        if (!file_exists($this->routePath . $routeName)) {
            return $response->notFound();
        }

        return $this->modifyContent(
                $request,
                $response,
                file_get_contents($this->routePath . $routeName),
                $routeName
        );
    }
public function resolve(Request $request, Response $response, UriPath $uriPath)
    {
        $routeName = $uriPath->remaining('index.html');
        if (!file_exists($this->routePath . $routeName)) {
            return $response->notFound();
        }

        return $this->modifyContent(
                $request,
                $response,
                file_get_contents($this->routePath . $routeName),
                $routeName
        );
    }
public function resolve ( Request $ request , Response $ response , UriPath $ uriPath ) { $ routeName = $ uriPath -> remaining ( 'index.html' ) ; if ( ! file_exists ( $ this -> routePath . $ routeName ) ) { return $ response -> notFound ( ) ; } return $ this -> modifyContent ( $ request , $ response , file_get_contents ( $ this -> routePath . $ routeName ) , $ routeName ) ; }
processes the request

@param   \stubbles\webapp\Request   $request   current request
@param   \stubbles\webapp\Response  $response  response to send
@param   \stubbles\webapp\UriPath   $uriPath   information about called uri path
@return  string|\stubbles\webapp\response\Error
processes the request