zendframework/zf2 — pull request #5085 by pdobrigkeit (2013-09-06 09:31:21+00:00)
Title: Enhancement/server url helper

It is not possible to configure the ViewHelper to use Proxy Vars, because __invoke never returns the instance. Alternative is cumbersome (and ugly):

$serverUrl = new \Zend\View\Helper\ServerUrl();
$serverUrl->setUseProxy(true);
echo $serverUrl($this->url('home'));