title: How to fix Symfony 3.4 @Route and @Method deprecation
body: <p>I have a Symfony 3.4 project and I have found below messages in profiler:</p>
  
  <ol>
  <li>“Sensio\Bundle\FrameworkExtraBundle\Configuration\Route” annotation is deprecated since version 5.2. Use “Symfony\Component\Routing\Annotation\Route”</li>
  <li>“Sensio\Bundle\FrameworkExtraBundle\Configuration\Method” annotation is deprecated since version 5.2. Use “Symfony\Component\Routing\Annotation\Route”</li>
  <li>“sensio_framework_extra.router.annotations” configuration is deprecated since version 5.2. Set it to false and use the “Symfony\Component\Routing\Annotation\Route”</li>
  </ol>
  
  <p>I have spent some time on looking for a solution, but found nothing really helpful.
  Some findings <a href="https://github.com/api-platform/core/issues/2062" rel="nofollow noreferrer">here</a> or <a href="https://github.com/symfony/demo/issues/785" rel="nofollow noreferrer">here</a>.</p>