Skip to content

Resolved class-names being cached #83

@mindplay-dk

Description

@mindplay-dk

I noticed that resolved class-names are now being cached, and that the annotation-names are no longer used.

In a cache-file, I see e.g.:

  'SampleAnnotation' => array(
    array('#name' => 'usage', '#type' => 'mindplay\\annotations\\UsageAnnotation', 'method'=>true)
  ),

I also noticed that the name is actually no longer used at all.

This is wrong.

We are caching a run-time result statically, and this is going to cause problems - suppose I change the configuration of my AnnotationManager and map @name to a different class. The class didn't change, so the cache isn't going to update, and the change won't take effect!

Resolved class-names cannot be cached, only the annotation-names can be cached - I don't know when this happened or why, but it needs to be changed back.

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