disableDefaultCsrfProtection() public static method

Disables Csrf protection for all forms.
public static disableDefaultCsrfProtection ( )
Example #1
0
 protected function setUp()
 {
     FormConfiguration::disableDefaultCsrfProtection();
     FormConfiguration::setDefaultCsrfSecret(null);
     $this->validator = $this->createMockValidator();
     $this->form = new Form('author', new Author(), $this->validator);
 }