Fixed the ApiDocExtractor for a change in Symfony 2.1
Fixed the ApiDocExtractor for a change in Symfony 2.1

Side note: the new code would also work for the Symfony 2.0 Routing
component, and in a more efficient way by avoiding to compile each route 3
times.

goetas/NelmioApiDocBundle,lonelyplanet/TEAPIDocBundle