Skip to content

Commit 8c55437

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: improve exception message if symfony/security-csrf is missing fix: MockResponse total_time should not be simulated when provided
2 parents b7cddcc + 2ded038 commit 8c55437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FormRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function setTheme(FormView $view, $themes, bool $useDefaultThemes = true)
5959
public function renderCsrfToken(string $tokenId)
6060
{
6161
if (null === $this->csrfTokenManager) {
62-
throw new BadMethodCallException('CSRF tokens can only be generated if a CsrfTokenManagerInterface is injected in FormRenderer::__construct().');
62+
throw new BadMethodCallException('CSRF tokens can only be generated if a CsrfTokenManagerInterface is injected in FormRenderer::__construct(). Try running "composer require symfony/security-csrf".');
6363
}
6464

6565
return $this->csrfTokenManager->getToken($tokenId)->getValue();

0 commit comments

Comments
 (0)