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.
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.:
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
AnnotationManagerand map@nameto 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.