nelmio/NelmioApiDocBundle — pull request #164 by benbender (2013-03-27 18:41:10+00:00)
Title: Fix for #163. Makes Reflection on Route-objects more robust.

Quick fix for #163 is to revert to ->all() in getRoutes() and to check for Route-objects in the extractAnnotations()-method. In the docbook of the extractAnnotations()-method, it should be clearly documented, that it only takes a \Traversable with Route-object and throw an InvalidArgument-Exception otherwise. Imho this is no BC-break, because this was always the case - with only difference that this would be properly handled now.