aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-01-16 14:50:45 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-01-16 14:50:45 +0100
commitd5efe89fa58dbbd505b6aacd9d0190363d2e8ad0 (patch)
treee0610242a04d5217a0b45a9d544f9e4e0de18f11 /lib
parent271013c0e6c36506acad35c4bedeeceb36f7c885 (diff)
use internal counter for VueCollector instance names, fixes #6164
Closes #6164 Merge request studip/studip!4669
Diffstat (limited to 'lib')
-rw-r--r--lib/classes/Debug/VueCollector.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/classes/Debug/VueCollector.php b/lib/classes/Debug/VueCollector.php
index 253b8fe..1ad218a 100644
--- a/lib/classes/Debug/VueCollector.php
+++ b/lib/classes/Debug/VueCollector.php
@@ -7,9 +7,15 @@ use Studip\VueApp;
final class VueCollector extends DataCollector implements Renderable
{
+ private static int $totalApps = 0;
+
+ private int $id;
+
public function __construct(
private readonly VueApp $app
) {
+ $this->id = self::$totalApps++;
+
$this->useHtmlVarDumper(false);
}
@@ -55,7 +61,7 @@ final class VueCollector extends DataCollector implements Renderable
public function getName()
{
- return '[Vue]' . basename($this->app->getAppPath());
+ return '[Vue#' . $this->id . ']' . basename($this->app->getAppPath());
}
/**