Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider::__construct
Initializes the provider with a Session object and a secret value.
A recommended value for the secret is a generated value with at least 32 characters and mixed letters, digits and special characters.
Signature
public function __construct(Session
$session,
string
$secret )
Parameters
$session
— Symfony\Component\HttpFoundation\Session\Session- The user session
$secret
— string- A secret value included in the CSRF token