In the feat to update Route annotations from the deprecated
Sensio\Bundle\FrameworkExtraBundle\Configuration\Method
and Sensio\Bundle\FrameworkExtraBundle\Configuration\Method
to use Symfony\Component\Routing\Annotation\Route
.
First of all I fixed the routes cos I realized I had some routes that ended with double closing bracket: ")".
The Fix:
Replace: