8000 Cannot redeclare ContainerAwareInterface in classes.php · Issue #23016 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Cannot redeclare ContainerAwareInterface in classes.php #23016
Closed
@MassiveHiggsField

Description

@MassiveHiggsField
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:

#22657
#20753
#21520

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0