Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Csrf: always use dedicated setter #2765

wants to merge 1 commit into
Jump to file or symbol
Failed to load files and symbols.
+1 −1
@@ -88,7 +88,7 @@ public function getCsrfValidator()
if (null === $this->csrfValidator) {
$csrfOptions = $this->getCsrfValidatorOptions();
$csrfOptions = array_merge($csrfOptions, array('name' => $this->getName()));
- $this->csrfValidator = new CsrfValidator($csrfOptions);
+ $this->setCsrfValidator(new CsrfValidator($csrfOptions));
return $this->csrfValidator;