zendframework/zf2 — pull request #2054 by heiglandreas (2012-07-31 06:54:05+00:00)
Title: Redirect to any scheme

The AbstractLocation now checks for an instance of UriInterface instead of Http-Uri to create a redirect-header. Therefore redirects to non-HTTP-URIs are possible now.

This adds an UriInterface that any 3rd-party URI-class has to implement to be recognised as URI.

Also the UriFactory is now used to create Uri-Objects from URI-strings

CAVEAT: This commit changes the ContentLocationTest and the AbstractLocationTest because they both asserted an instance of \Zend\Uri\Http when giving a relative URI which can no longer be true. This might break some behaviour!