[DDC-1937] Fix bug with apc and annotation caching using a workaround.
This commit is contained in:
parent
e8d3fc73ff
commit
00a5f18544
@ -60,8 +60,12 @@ class AnnotationDriver extends AbstractAnnotationDriver
|
|||||||
|
|
||||||
$classAnnotations = $this->reader->getClassAnnotations($class);
|
$classAnnotations = $this->reader->getClassAnnotations($class);
|
||||||
|
|
||||||
if ($classAnnotations && is_numeric(key($classAnnotations))) {
|
if ($classAnnotations) {
|
||||||
foreach ($classAnnotations as $annot) {
|
foreach ($classAnnotations as $key => $annot) {
|
||||||
|
if ( ! is_numeric($key)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$classAnnotations[get_class($annot)] = $annot;
|
$classAnnotations[get_class($annot)] = $annot;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -456,8 +460,11 @@ class AnnotationDriver extends AbstractAnnotationDriver
|
|||||||
if ($method->isPublic() && $method->getDeclaringClass()->getName() == $class->name) {
|
if ($method->isPublic() && $method->getDeclaringClass()->getName() == $class->name) {
|
||||||
$annotations = $this->reader->getMethodAnnotations($method);
|
$annotations = $this->reader->getMethodAnnotations($method);
|
||||||
|
|
||||||
if ($annotations && is_numeric(key($annotations))) {
|
if ($annotations) {
|
||||||
foreach ($annotations as $annot) {
|
foreach ($annotations as $key => $annot) {
|
||||||
|
if ( ! is_numeric($key)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$annotations[get_class($annot)] = $annot;
|
$annotations[get_class($annot)] = $annot;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user