protected function initializeControllerContext()
    {

        $request = new ActionRequest(Request::createFromEnvironment());
        $request->setDispatched(true);
        if (isset($this->flowHttpSettings['baseUri'])) {
            $request->getHttpRequest()->setBaseUri(new Uri($this->flowHttpSettings['baseUri']));
        }

        $response = new Response();

        $uriBuilder = new UriBuilder();
        $uriBuilder->setRequest($request);

        $arguments = new Arguments(array());

        $this->controllerContext = new ControllerContext($request, $response, $arguments, $uriBuilder);
    }
protected function initializeControllerContext()
    {

        $request = new ActionRequest(Request::createFromEnvironment());
        $request->setDispatched(true);
        if (isset($this->flowHttpSettings['baseUri'])) {
            $request->getHttpRequest()->setBaseUri(new Uri($this->flowHttpSettings['baseUri']));
        }

        $response = new Response();

        $uriBuilder = new UriBuilder();
        $uriBuilder->setRequest($request);

        $arguments = new Arguments(array());

        $this->controllerContext = new ControllerContext($request, $response, $arguments, $uriBuilder);
    }
protected function initializeControllerContext ( ) { $ request = new ActionRequest ( Request :: createFromEnvironment ( ) ) ; $ request -> setDispatched ( true ) ; if ( isset ( $ this -> flowHttpSettings [ 'baseUri' ] ) ) { $ request -> getHttpRequest ( ) -> setBaseUri ( new Uri ( $ this -> flowHttpSettings [ 'baseUri' ] ) ) ; } $ response = new Response ( ) ; $ uriBuilder = new UriBuilder ( ) ; $ uriBuilder -> setRequest ( $ request ) ; $ arguments = new Arguments ( array ( ) ) ; $ this -> controllerContext = new ControllerContext ( $ request , $ response , $ arguments , $ uriBuilder ) ; }
The Resource Information most likely needs an UriBuilder, so having a
ControllerContext in place might come in handy.

@return void
The Resource Information most likely needs an UriBuilder so having a ControllerContext in place might come in handy .