symfony/symfony — pull request #12443 by jameshalsall (2014-11-10 10:49:21+00:00)
Title: Adding support for invokable controllers in the RequestDataCollector

As part of https://github.com/symfony/symfony/pull/11193 support for controllers using `__invoke()` was added.

The `RequestDataCollector` did not support controllers that were defined in the routing as...

```php
route_name:
path: /{id}
defaults: { _controller: acme_app.page.controller.page }
requirements:
id: \d+
```

Where the controller was defined as...

```php
class PageController
{
public function __invoke()
{
//
}
}
```

This PR adds that support. Tests have been updated.