Symfony cache issue after upgraded to symfony from 2.8 to 3.4

40 Views Asked by At

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

enter image description here

If I delete cache folder it seems working initially and 2nd time onwards while hitting any routes I am getting this issue.

0

There are 0 best solutions below