Skip to content

Clearing the cache fails on environment with a hyphen #26884

@jaikdean

Description

@jaikdean
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0.8

If I create an environment with a hyphen in the name, Symfony throws a fatal error when clearing the cache, and most likely when trying to do anything else. This is caused by there being a class created with an invalid name. For example, \ContainerEx9x7hC\srcSandbox-v1DebugProjectContainer for an environment of sandbox-v1.

Either this is a bug, or the format of environment names needs to be documented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions