JMSSecurityExtraBundle icon indicating copy to clipboard operation
JMSSecurityExtraBundle copied to clipboard

Cannot redeclare class "EnhancedProxy_xxxxx\__CG__\JMS\SecurityExtraBundle\Tests\Functional\TestBundle\Controller\PostController"

Open ioleo opened this issue 10 years ago • 2 comments

Lately on app/console cache:clear or app/console cache:warmup I am getting this error message:

PHP Fatal error: Cannot redeclare class EnhancedProxy_73b88e6bf5989f9e4785cea753cad509a15376f1__CG__\JMS\SecurityExtraBundle\Tests\Functional\TestBundle\Controller\PostController in /symfony2-project/app/cache/de_/jms_diextra/lookup_method_classes/JMS-SecurityExtraBundle-Tests-Functional-TestBundle-Controller-PostController.php on line 11

However, that happens only on first command execution. If I execute the same command again (after getting this error) then it succesfully finishes without any errors.

ioleo avatar Aug 20 '14 14:08 ioleo