update patch 1

This commit is contained in:
fiqhpratama
2024-12-02 01:18:34 +07:00
parent 453d9bb470
commit 25026b0a85
3380 changed files with 103529 additions and 363623 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ class Profiler implements ResetInterface
return null;
}
$profile = new Profile(substr(hash('xxh128', uniqid(mt_rand(), true)), 0, 6));
$profile = new Profile(bin2hex(random_bytes(3)));
$profile->setTime(time());
$profile->setUrl($request->getUri());
$profile->setMethod($request->getMethod());
@@ -221,7 +221,7 @@ class Profiler implements ResetInterface
public function get(string $name): DataCollectorInterface
{
if (!isset($this->collectors[$name])) {
throw new \InvalidArgumentException(sprintf('Collector "%s" does not exist.', $name));
throw new \InvalidArgumentException(\sprintf('Collector "%s" does not exist.', $name));
}
return $this->collectors[$name];