[FrameworkBundle] made csrf_secret parameter optional
This commit is contained in:
parent
77602239a4
commit
74bc9d461b
@ -26,8 +26,8 @@ class FrameworkBundle extends Bundle
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
if ($secret = $this->container->getParameter('csrf_secret')) {
|
||||
Form::setDefaultCsrfSecret($secret);
|
||||
if ($this->container->hasParameter('csrf_secret')) {
|
||||
Form::setDefaultCsrfSecret($this->container->getParameter('csrf_secret'));
|
||||
Form::enableDefaultCsrfProtection();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user