fix/policy-container-width #91

Merged
rafaga21 merged 6 commits from fix/policy-container-width into master 2026-06-14 09:19:34 -04:00
Showing only changes of commit 12ad0e0510 - Show all commits

View File

@@ -10,6 +10,7 @@ class View
private string $layout = 'main';
private array $data = [];
private Security $security;
private ?string $csrfTokenCache = null;
public function __construct(Security $security)
{
@@ -80,7 +81,10 @@ class View
public function csrfToken(): string
{
return $this->security->generateCSRFToken();
if ($this->csrfTokenCache === null) {
$this->csrfTokenCache = $this->security->generateCSRFToken();
}
return $this->csrfTokenCache;
}
public function csrfField(): string