Skip to content

BUG: Reflection cache for class is not flushed on file deletion #3303

@mhsdesign

Description

@mhsdesign

That leads to forgetClass not being fired and allImplementationsForInterface returning stale classes which leads to places using that and instantiating objects like the property mapper crash if a property mapper was deleted:

Object "Neos\Neos\TypeConverter\NodeConverterBla" is not registered.

This seems to be a regression from e7c00fa as the early return in file_exists($pathAndFilename) will prevent the cache flushing.
The early return was a necessary evil to support psr4. Previously the class name was inferred by location (that it resides in Classes), now we scan its contents and build it.
We should probably get the autoloading paths configuration from the package and build a path that way? But that information is not at hand at that time.

I guess we have to add the path to the Flow_Object_Classes as well?

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