Using annotations or attributes for routes are now fully integrated in the Symfony namespace.
You are probably using use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; in your controllers.
Use Symfony\Component\Routing\Annotation\Route instead.
You can then remove the FrameworkExtraBundle with fully working routes.