symfony/symfony — pull request #2690 by joksnet (2011-11-22 13:59:35+00:00)
Title: [HttpKernel] ControllerResolver arguments reflection for Closure object.

When controller is a `Closure` `ControllerResolver::getArguments` tries to make a `ReflectionMethod` of the `__invoke` method. But because it's an internal function, the parameters method `isDefaultValueAvailable` will return always false, even if `isOptional` return true.