We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36a945c + f61495a commit 172bb6fCopy full SHA for 172bb6f
Security/AccessHandler.php
@@ -198,6 +198,11 @@ public function getAccessAnnotation($class)
198
$reflectionClass = new \ReflectionClass($reflectionClass);
199
}
200
201
+ // If is a Proxy
202
+ if (in_array(Proxy::class, $reflectionClass->getInterfaceNames())) {
203
+ $reflectionClass = new \ReflectionClass($reflectionClass->getParentClass()->getName());
204
+ }
205
+
206
self::$accessAnnotationCache[$className] = $this->annotationReader->getClassAnnotation(
207
$reflectionClass,
208
'Glavweb\SecurityBundle\Mapping\Annotation\Access'
@@ -247,4 +252,4 @@ private function getTwigEnvironment()
247
252
248
253
return $this->twigEnvironment;
249
254
250
-}
255
+}
0 commit comments