Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 3.3.0 |
After upgrading from Symfony 3.0.6 to 3.3.0 something with the cache seems to be broken in production mode. There are some other tickets basically mentioning the same issue, but the solution was always to remove the offending class from src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Similar issues/pull requests:
and some more, just search for redeclare in the issues.
My problem specifically concerns the ContainerAwareInterface, the error message is:
PHP message: PHP Fatal error: Cannot redeclare class Symfony\Component\DependencyInjection\ContainerAwareInterface in var/cache/dhs/prod/classes.php on line 3364
At first i tried the usual, cache clearing (via rm and app/console), vendor reinstalls (even removing the complete vendor directory).
I just removed the class from the list in FrameworkExtension.php, cleared the cache and everything works fine so far. Is there a bigger problem with this new caching mechanism or is it my environment?