Symfony has change setHostname to setHost.