symfony/symfony — pull request #4642 by Crell (2012-06-23 16:41:21+00:00)
Title: Add the Countable interface to RouteCollection.

Since RouteCollection is a fancy-pants array of Routes, and it already is iterable, it would be nice if it were also countable.

There may be optimizations to be had here, but I figure this is a decent start. There should be no BC breaks here, just some DX convenience.