Commit 47ff5ffb authored by alexpott's avatar alexpott
Browse files

Issue #1901390 by chx, sun: Enable StaticReflectionParser performance...

Issue #1901390 by chx, sun: Enable StaticReflectionParser performance optimization to speed up Annotation parsing.
parent 0ff5e6d2
......@@ -108,7 +108,7 @@ public function getDefinitions() {
// file. However, StaticReflectionParser needs a finder, so use a
// mock version.
$finder = MockFileFinder::create($fileinfo->getPathName());
$parser = new StaticReflectionParser($class, $finder);
$parser = new StaticReflectionParser($class, $finder, TRUE);
if ($annotation = $reader->getClassAnnotation($parser->getReflectionClass(), $this->pluginDefinitionAnnotationName)) {
// AnnotationInterface::get() returns the array definition
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment