Make router compatible with Symfony 2.4+
improved symfony 2.4 compat fix
fixed code formatting
Merge pull request #116 from kbond/symfony-2.4

Make router compatible with Symfony 2.4+