[Routing] Added support for @Method on class

To be merged after  https://github.com/symfony/symfony/pull/9996