/**
* Initializes the response object and returns it
*
* @author Nikolaos Dimopoulos <*****@*****.**>
* @since 2014-10-05
*
* @return Response
*/
protected function getResponseObject()
{
Di::reset();
$di = new Di();
$di->set('url', function () {
$url = new Url();
$url->setBaseUri('/');
return $url;
});
$response = new Response();
$response->setDI($di);
return $response;
}