Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 172bb6f

Browse files
committedFeb 2, 2018
Merge remote-tracking branch 'origin/master'
2 parents 36a945c + f61495a commit 172bb6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎Security/AccessHandler.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ public function getAccessAnnotation($class)
198198
$reflectionClass = new \ReflectionClass($reflectionClass);
199199
}
200200

201+
// If is a Proxy
202+
if (in_array(Proxy::class, $reflectionClass->getInterfaceNames())) {
203+
$reflectionClass = new \ReflectionClass($reflectionClass->getParentClass()->getName());
204+
}
205+
201206
self::$accessAnnotationCache[$className] = $this->annotationReader->getClassAnnotation(
202207
$reflectionClass,
203208
'Glavweb\SecurityBundle\Mapping\Annotation\Access'
@@ -247,4 +252,4 @@ private function getTwigEnvironment()
247252

248253
return $this->twigEnvironment;
249254
}
250-
}
255+
}

0 commit comments

Comments
 (0)
Please sign in to comment.