Proper management of the router resource type

Fixes #289

This is a workaround while waiting for
https://github.com/symfony/symfony/issues/11018
Merge pull request #290 from lavoiesl/router-resource-type

Proper management of the router resource type