zendframework/zf2 — pull request #1929 by SocalNick (2012-07-19 21:34:36+00:00)
Title: [WIP] - Hotfix/view strategy match priority

PLEASE DO NOT MERGE YET

## Abstract
Most browsers send \*/\*;q=0.8 as part of the accept header. With the new Accept header implementation, the JsonStrategy was matching all requests. This fix attempts to resolve this by not stopping on the first match and instead compare the priorities of all the strategies that matched.

## Pros
* Evaluates all strategies aka doesn't choose the first match

## Cons
* Evaluates all strategies - this can be a problem when rendering a model with several children
* 2-levels of priorities, the order of strategies registered and the match priority. When the JsonStrategy matched with priority of 0.8 and the PhpRendererStrategy matched with priority of 0.8, it was weird to choose the PhpRendererStrategy even though it was the last strategy registered.