FriendsOfSymfony/FOSJsRoutingBundle — pull request #41 by matteosister (2012-08-30 13:16:29+00:00)
Title: the main router:debug command do not accept a compiled route

with the command
``` bash
./app/console fos:js-routing:debug
```
I get
```
Call to undefined method Symfony\Component\Routing\CompiledRoute::getRequirements()
```

So, after some investigation, I found that the problem is that we are passing a CompiledRoute instead of a Route object, which do not have any getRequirements() method **in the master branch of symfony**

In the 2.0 branch there is the getRequirements method, but I think that this PR should work also on the 2.0 branch, because passing an array of Route objects it's ok in any case.