We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a83ab5 commit f2ee306Copy full SHA for f2ee306
1 file changed
src/TI/TSitemap.php
@@ -16,7 +16,7 @@
16
17
trait TSitemap
18
{
19
- public function getSitemap() : array
+ public static function getSitemap() : array
20
21
$pages = [];
22
@@ -32,7 +32,16 @@ public function getSitemap() : array
32
continue;
33
}
34
35
- $pages[] = ":{$this->getName()}:" . lcfirst(substr($method->name, 6));
+ $regex = '/App\\\\([A-Z][a-z]*)Module\\\\Presenter\\\\([A-Z][a-z]*)Presenter/';
36
+ $matches = [];
37
+ preg_match($regex, $reflection->name, $matches);
38
+
39
+ if (\count($matches) < 3)
40
+ {
41
+ continue;
42
+ }
43
44
+ $pages[] = ":{$matches[1]}:{$matches[2]}:" . lcfirst(substr($method->name, 6));
45
46
47
return $pages;
0 commit comments