19 $interceptedInstances = [];
21 $dom = new \DOMDocument();
23 $xpath = new \DOMXPath($dom);
25 foreach ($xpath->query(
'//type/plugin|//virtualType/plugin') as $node) {
26 $parentTypeNode = $node->parentNode->attributes->getNamedItem(
'name');
27 if ($parentTypeNode ===
null) {
31 if (!isset($interceptedInstances[$parentTypeNode->nodeValue])) {
32 $interceptedInstances[$parentTypeNode->nodeValue] = [];
35 $pluginTypeNode = $node->attributes->getNamedItem(
'type');
36 if ($pluginTypeNode !==
null) {
37 $interceptedInstances[$parentTypeNode->nodeValue][] = $pluginTypeNode->nodeValue;
41 return $interceptedInstances;
collectEntities(array $files)
foreach($appDirs as $dir) $files