From aada3151aa79b26b7eb50092bd3a5e5830c6e95e Mon Sep 17 00:00:00 2001 From: Martin Le Guillou Date: Mon, 16 May 2016 15:59:41 +0200 Subject: [PATCH] enable ApiDocExtractor overriding --- Extractor/ApiDocExtractor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extractor/ApiDocExtractor.php b/Extractor/ApiDocExtractor.php index 6d9168e..c83add0 100644 --- a/Extractor/ApiDocExtractor.php +++ b/Extractor/ApiDocExtractor.php @@ -122,7 +122,7 @@ class ApiDocExtractor } if ($method = $this->getReflectionMethod($route->getDefault('_controller'))) { - $annotation = $this->reader->getMethodAnnotation($method, self::ANNOTATION_CLASS); + $annotation = $this->reader->getMethodAnnotation($method, static::ANNOTATION_CLASS); if ( $annotation && !in_array($annotation->getSection(), $excludeSections) && (in_array($view, $annotation->getViews()) || (0 === count($annotation->getViews()) && $view === ApiDoc::DEFAULT_VIEW)) @@ -255,7 +255,7 @@ class ApiDocExtractor public function get($controller, $route) { if ($method = $this->getReflectionMethod($controller)) { - if ($annotation = $this->reader->getMethodAnnotation($method, self::ANNOTATION_CLASS)) { + if ($annotation = $this->reader->getMethodAnnotation($method, static::ANNOTATION_CLASS)) { if ($route = $this->router->getRouteCollection()->get($route)) { return $this->extractData($annotation, $route, $method); }