[Routing] Added support for @Method on class

linked to https://github.com/symfony/symfony/pull/9996