Recently I have migrated from symfony 2.8 to 3.4 and the application is breaking. If I load any routes by default the login page loads and if I hit the route from 2nd time onwards I am getting this error message.
Compile Error: Cannot redeclare class Doctrine\Common\Persistence\AbstractManagerRegistry
If I delete cache folder it seems working initially and 2nd time onwards while hitting any routes I am getting this issue.
