Skip to content
Snippets Groups Projects
Commit 47ff5ffb authored by Alex Pott's avatar Alex Pott
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment