CsrfExtension
class CsrfExtension extends AbstractExtension
This extension protects forms by using a CSRF token.
Methods
getTypeExtensions(string $name)
Returns the extensions for the given type.
from AbstractExtension
bool
hasTypeExtensions(string $name)
Returns whether this extension provides type extensions for the given type.
from AbstractExtension
getTypeGuesser()
Returns the type guesser provided by this extension.
from AbstractExtension
loadTypeExtensions()
Registers the type extensions.
__construct(CsrfTokenManagerInterface $tokenManager, TranslatorInterface|null $translator = null, string $translationDomain = null)
No description
Details
FormTypeExtensionInterface[]
getTypeExtensions(string $name)
Returns the extensions for the given type.
bool
hasTypeExtensions(string $name)
Returns whether this extension provides type extensions for the given type.